diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2014-08-01 02:33:03 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2014-08-01 02:33:03 +0200 |
commit | 8932605192a3d8cad214afd210f6b454d2c012d4 (patch) | |
tree | 7a6769351297b5be4d99720f56b75ed3034987ba /src/lib/Bcfg2 | |
parent | 01b9683dddc2cb42edf4fe2193ef59ce3cc41d6c (diff) | |
download | bcfg2-8932605192a3d8cad214afd210f6b454d2c012d4.tar.gz bcfg2-8932605192a3d8cad214afd210f6b454d2c012d4.tar.bz2 bcfg2-8932605192a3d8cad214afd210f6b454d2c012d4.zip |
Client: fix handling of important entries
The condition of the if should match the case, if the entry should be
skipped.
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r-- | src/lib/Bcfg2/Client/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Client/__init__.py b/src/lib/Bcfg2/Client/__init__.py index f1b32d929..d0a408504 100644 --- a/src/lib/Bcfg2/Client/__init__.py +++ b/src/lib/Bcfg2/Client/__init__.py @@ -562,8 +562,8 @@ class Client(object): if not Bcfg2.Options.setup.dry_run: for parent in self.config.findall(".//Path/.."): name = parent.get("name") - if (name and (name in Bcfg2.Options.setup.only_bundles or - name not in Bcfg2.Options.setup.except_bundles)): + if not name or (name in Bcfg2.Options.setup.except_bundles and + name not in Bcfg2.Options.setup.only_bundles): continue for cfile in parent.findall("./Path"): if (cfile.get('name') not in self.__important__ or |