diff options
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r-- | src/lib/Server/Plugins/Metadata.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Metadata.py b/src/lib/Server/Plugins/Metadata.py index a4ee1640c..396b26e91 100644 --- a/src/lib/Server/Plugins/Metadata.py +++ b/src/lib/Server/Plugins/Metadata.py @@ -264,8 +264,9 @@ class Metadata(Bcfg2.Server.Plugin.Plugin): dlines = data.text.split('\n') for line in dlines[:]: if line.split(':')[0] == 'group': - if line.split(':')[1] not in self.cgroups[client.hostname]: - self.cgroups[client.hostname].append(line.split(':')[1]) + newgroup = line.split(':')[1].strip() + if newgroup not in self.cgroups[client.hostname]: + self.cgroups[client.hostname].append(newgroup) dlines.remove(line) dtext = "\n".join(dlines) try: |