summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-10-14 22:00:11 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-10-14 22:00:11 +0000
commit3d0455feb42c9176f113294f5b56ff66fe98c676 (patch)
tree6e39b6c3da28e0cc6da2aea1c9c0a09053e07a98 /src/sbin
parent6efbe51ba850225231320fbbf7919d6ce2c1f484 (diff)
downloadbcfg2-3d0455feb42c9176f113294f5b56ff66fe98c676.tar.gz
bcfg2-3d0455feb42c9176f113294f5b56ff66fe98c676.tar.bz2
bcfg2-3d0455feb42c9176f113294f5b56ff66fe98c676.zip
fix -b usage
(Logical change 1.97) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@442 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rw-r--r--src/sbin/bcfg27
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sbin/bcfg2 b/src/sbin/bcfg2
index e315012d5..a5b88a475 100644
--- a/src/sbin/bcfg2
+++ b/src/sbin/bcfg2
@@ -88,6 +88,13 @@ if __name__ == '__main__':
print "got error from server"
exit(1)
+ if setup['bundle']:
+ c = XML("<Configuration version='2.0/>")
+ for child in cfg.getroot().getchildren():
+ if ((child.tag == 'Bundle') and (child.attrib['name'] == setup['bundle'])):
+ c.append(child)
+ cfg = c
+
client = Debian(cfg, setup)
# verify state
client.Inventory()