mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Strip group names of whitespaces, so we can use space after comma in openstack's groups metadata field. (#16843)
This commit is contained in:
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:
|
||||
|
||||
Reference in New Issue
Block a user