Merge pull request #6969 from sivel/rax-inventory-fix-empty-group

Fix empty group name in rax.py output
This commit is contained in:
Michael DeHaan 2014-04-14 11:15:33 -04:00
commit 20d4749dbc

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():