1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix empty group in rax.py output

This commit is contained in:
Matt Martz 2014-04-12 15:57:59 -04:00
parent 5ce6c86595
commit 21a2d32ffc

View file

@ -168,7 +168,8 @@ def _list(regions):
groups[group].append(server.name)
for extra_group in server.metadata.get('groups', '').split(','):
groups[extra_group].append(server.name)
if extra_group:
groups[extra_group].append(server.name)
# Add host metadata
for key, value in to_dict(server).items():