diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2004-10-14 22:00:11 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2004-10-14 22:00:11 +0000 |
commit | 3d0455feb42c9176f113294f5b56ff66fe98c676 (patch) | |
tree | 6e39b6c3da28e0cc6da2aea1c9c0a09053e07a98 | |
parent | 6efbe51ba850225231320fbbf7919d6ce2c1f484 (diff) | |
download | bcfg2-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
-rw-r--r-- | src/sbin/bcfg2 | 7 |
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() |