diff options
author | Oskar WyciĆlak <cantorek@o2.pl> | 2016-08-04 18:45:15 +0200 |
---|---|---|
committer | Matt Davis <nitzmahone@users.noreply.github.com> | 2016-08-04 09:45:15 -0700 |
commit | 8e956675f7c624a9e5e90e34227b626042a7c35f (patch) | |
tree | 75bd7908a7ce101a0df1dc1e3a899737ccab9196 /contrib | |
parent | 7ea56e1c79eb7b39ab252aa99946b21a77b36b71 (diff) | |
download | ansible-8e956675f7c624a9e5e90e34227b626042a7c35f.tar.gz |
Strip group names of whitespaces, so we can use space after comma in openstack's groups metadata field. (#16843)
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/inventory/openstack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/inventory/openstack.py b/contrib/inventory/openstack.py index 26d5340659..0d92eae110 100755 --- a/contrib/inventory/openstack.py +++ b/contrib/inventory/openstack.py @@ -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: |