summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Metadata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Metadata.py b/src/lib/Bcfg2/Server/Plugins/Metadata.py
index 447a7cd05..5dcaa8bdb 100644
--- a/src/lib/Bcfg2/Server/Plugins/Metadata.py
+++ b/src/lib/Bcfg2/Server/Plugins/Metadata.py
@@ -858,10 +858,10 @@ class Metadata(Bcfg2.Server.Plugin.Plugin,
def merge_additional_groups(self, imd, groups):
for group in groups:
- if group in imd.groups or group not in self.groups:
+ if group in imd.groups:
continue
- category = self.groups[group].category
- if category:
+ if group in self.groups and self.groups[group].category:
+ category = self.groups[group].category
if self.groups[group].category in imd.categories:
self.logger.warning("%s: Group %s suppressed by category "
"%s; %s already a member of %s" %