From 97b3be0782c108e47bc5ab1a4119029fcffe208d Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 11 Jan 2007 20:51:45 +0000 Subject: Fix negation logic git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2653 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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}) -- cgit v1.2.3-1-g7c22