Strip group names of whitespaces, so we can use space after comma in openstack's groups metadata field. (#16843)
This commit is contained in:
parent
7ea56e1c79
commit
8e956675f7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue