From d322180dcedb1afce1b4b9cb768bab364fe6d5ac Mon Sep 17 00:00:00 2001 From: Will Woods Date: Wed, 22 Jun 2011 19:22:33 -0400 Subject: [PATCH] instantiate RuntimeBuilder/TreeBuilder with keyword args --- src/pylorax/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index db9f2885..0d994224 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -183,7 +183,8 @@ class Lorax(BaseLoraxClass): logger.debug("product data: %s" % product) templatedir = self.conf.get("lorax", "sharedir") - rb = RuntimeBuilder(self.product, self.arch, ybo, templatedir) + rb = RuntimeBuilder(product=self.product, arch=self.arch, + yum=ybo, templatedir=templatedir) logger.info("installing runtime packages") rb.yum.conf.skip_broken = self.conf.getboolean("yum", "skipbroken") @@ -223,9 +224,9 @@ class Lorax(BaseLoraxClass): rb.create_runtime(runtime) logger.info("preparing to build output tree and boot images") - treebuilder = TreeBuilder(self.product, self.arch, - installroot, self.outputdir, - templatedir) + treebuilder = TreeBuilder(product=self.product, arch=self.arch, + inroot=installroot, outroot=self.outputdir, + templatedir=templatedir) logger.info("rebuilding initramfs images") treebuilder.rebuild_initrds(add_args=["--xz"])