summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Client/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2/Client/__init__.py')
-rw-r--r--src/lib/Bcfg2/Client/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Client/__init__.py b/src/lib/Bcfg2/Client/__init__.py
index a7e0dade5..14c14a224 100644
--- a/src/lib/Bcfg2/Client/__init__.py
+++ b/src/lib/Bcfg2/Client/__init__.py
@@ -399,7 +399,7 @@ class Client(object):
if Bcfg2.Options.setup.bundle_quick:
newconfig = XML.XML('<Configuration/>')
- for bundle in self.config.getchildren():
+ for bundle in self.config:
name = bundle.get("name")
if (name and (name in Bcfg2.Options.setup.only_bundles or
name not in Bcfg2.Options.setup.except_bundles)):
@@ -612,8 +612,8 @@ class Client(object):
"""
# initialize all states
- for struct in self.config.getchildren():
- for entry in struct.getchildren():
+ for struct in self.config:
+ for entry in struct:
self.states[entry] = False
for tool in self.tools:
try:
@@ -665,7 +665,7 @@ class Client(object):
# first perform bundle filtering
all_bundle_names = [b.get('name')
for b in self.config.findall('./Bundle')]
- bundles = self.config.getchildren()
+ bundles = self.config
if Bcfg2.Options.setup.only_bundles:
# warn if non-existent bundle given
for bundle in Bcfg2.Options.setup.only_bundles: