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

This commit is contained in:
Oskar Wyciślak 2016-08-04 18:45:15 +02:00 committed by Matt Davis
parent 7ea56e1c79
commit 8e956675f7

View file

@ -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: