summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Frame.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-02 22:13:37 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-02 22:13:37 +0000
commit4f78d5eab46403692858d6ab07fd8d6a451f13a6 (patch)
treeb54af872b1b708aa693ef99a456b9b4b97ad70be /src/lib/Client/Frame.py
parentd947527b5d33c130e2aef35748242fae5388f621 (diff)
downloadbcfg2-4f78d5eab46403692858d6ab07fd8d6a451f13a6.tar.gz
bcfg2-4f78d5eab46403692858d6ab07fd8d6a451f13a6.tar.bz2
bcfg2-4f78d5eab46403692858d6ab07fd8d6a451f13a6.zip
Ensure that (pre) actions are not executed from Base
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2771 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Frame.py')
-rw-r--r--src/lib/Client/Frame.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py
index b7715c4cd..a297ef389 100644
--- a/src/lib/Client/Frame.py
+++ b/src/lib/Client/Frame.py
@@ -165,6 +165,9 @@ class Frame:
bundles = self.config.getchildren()
gbundles = []
for bundle in bundles:
+ if bundle.tag != 'Bundle':
+ gbundles.append(bundle)
+ continue
actions = [a for a in bundle.findall('./Action') \
if a.get('timing') != 'post']
# run all actions if modified or always