diff options
Diffstat (limited to 'cloudinit/distros/__init__.py')
-rwxr-xr-x | cloudinit/distros/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py index 4a726430..1f731951 100755 --- a/cloudinit/distros/__init__.py +++ b/cloudinit/distros/__init__.py @@ -403,7 +403,7 @@ class Distro(object): # that can go right through to the command. kwargs['groups'] = ",".join(groups) else: - groups = groups.split(",") + groups = [group.strip() for group in groups.split(",")] primary_group = kwargs.get('primary_group') if primary_group: |