Strip group names of whitespaces, so we can use space after comma in openstack's groups metadata field. (#16843)

pull/16954/head
Oskar Wyciślak 8 years ago committed by Matt Davis
parent 7ea56e1c79
commit 8e956675f7

@ -86,7 +86,7 @@ def get_groups_from_server(server_vars, namegroup=True):
for extra_group in metadata.get('groups', '').split(','):
if extra_group:
groups.append(extra_group)
groups.append(extra_group.strip())
groups.append('instance-%s' % server_vars['id'])
if namegroup:

Loading…
Cancel
Save