From 01d68bf3237529f5cb6a9160b4328e797d01b0fe Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Wed, 6 Jun 2012 16:35:13 -0400 Subject: added -B (skip bundles) and -Z (skip independent) options --- src/sbin/bcfg2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/sbin') diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2 index 3cfdf38f6..2a7e5f585 100755 --- a/src/sbin/bcfg2 +++ b/src/sbin/bcfg2 @@ -43,8 +43,10 @@ class Client: dryrun=Bcfg2.Options.CLIENT_DRYRUN, paranoid=Bcfg2.Options.CLIENT_PARANOID, bundle=Bcfg2.Options.CLIENT_BUNDLE, + skipbundle=Bcfg2.Options.CLIENT_SKIPBUNDLE, bundle_quick=Bcfg2.Options.CLIENT_BUNDLEQUICK, indep=Bcfg2.Options.CLIENT_INDEP, + skipindep=Bcfg2.Options.CLIENT_SKIPINDEP, file=Bcfg2.Options.CLIENT_FILE, interactive=Bcfg2.Options.INTERACTIVE, cache=Bcfg2.Options.CLIENT_CACHE, @@ -271,8 +273,10 @@ class Client: if self.setup['bundle_quick']: newconfig = Bcfg2.Client.XML.XML('') - [newconfig.append(bundle) for bundle in self.config.getchildren() if \ - bundle.tag == 'Bundle' and bundle.get('name') in self.setup['bundle']] + [newconfig.append(bundle) + for bundle in self.config.getchildren() + if (bundle.tag == 'Bundle' and + bundle.get('name') in self.setup['bundle'])] self.config = newconfig self.tools = Bcfg2.Client.Frame.Frame(self.config, -- cgit v1.2.3-1-g7c22