diff options
author | Holger Weiß <holger@zedat.fu-berlin.de> | 2011-07-05 18:23:41 +0200 |
---|---|---|
committer | Holger Weiß <holger@zedat.fu-berlin.de> | 2011-07-05 18:23:41 +0200 |
commit | 98efabd373da4bdb72c7a9602dc0bf44e83e6b54 (patch) | |
tree | 248bbdeeaea631497879c40e840856e05b1fa651 | |
parent | 967c76d15ba2ed299e9975186db01b5db68418da (diff) | |
download | bcfg2-98efabd373da4bdb72c7a9602dc0bf44e83e6b54.tar.gz bcfg2-98efabd373da4bdb72c7a9602dc0bf44e83e6b54.tar.bz2 bcfg2-98efabd373da4bdb72c7a9602dc0bf44e83e6b54.zip |
bcfg2-admin compare: Fix check if tag is known
The if statement which checks whether a given tag is known was declared
the wrong way round.
-rw-r--r-- | src/lib/Server/Admin/Compare.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Admin/Compare.py b/src/lib/Server/Admin/Compare.py index 7a28a8560..c62b4a76a 100644 --- a/src/lib/Server/Admin/Compare.py +++ b/src/lib/Server/Admin/Compare.py @@ -32,7 +32,7 @@ class Compare(Bcfg2.Server.Admin.Mode): for child in new.getchildren(): equiv = old.xpath('%s[@name="%s"]' % (child.tag, child.get('name'))) - if child.tag in self.important: + if child.tag not in self.important: print("tag type %s not handled" % (child.tag)) continue if len(equiv) == 0: |