From 8932605192a3d8cad214afd210f6b454d2c012d4 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 1 Aug 2014 02:33:03 +0200 Subject: Client: fix handling of important entries The condition of the if should match the case, if the entry should be skipped. --- src/lib/Bcfg2/Client/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/Bcfg2/Client/__init__.py') 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 -- cgit v1.2.3-1-g7c22