diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-01-11 20:51:45 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-01-11 20:51:45 +0000 |
commit | 97b3be0782c108e47bc5ab1a4119029fcffe208d (patch) | |
tree | db3b8e987e16981e15da543c31a9eaf8d527aafd | |
parent | 86c6c58097b2596faf7760e43edd14ba4a6bc02b (diff) | |
download | bcfg2-97b3be0782c108e47bc5ab1a4119029fcffe208d.tar.gz bcfg2-97b3be0782c108e47bc5ab1a4119029fcffe208d.tar.bz2 bcfg2-97b3be0782c108e47bc5ab1a4119029fcffe208d.zip |
Fix negation logic
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2653 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Server/Plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py index a7648e9ca..6b37585ed 100644 --- a/src/lib/Server/Plugin.py +++ b/src/lib/Server/Plugin.py @@ -220,9 +220,9 @@ class INode: else: predicate = parent.predicate if data.get('negate', 'false') == 'true': - psrc = self.raw - else: psrc = self.nraw + else: + psrc = self.raw if data.tag in psrc.keys(): self.predicate = eval(psrc[data.tag] % (data.get('name')), {'predicate':predicate}) |