diff options
author | Matt Martz <matt@sivel.net> | 2014-04-12 15:57:59 -0400 |
---|---|---|
committer | Matt Martz <matt@sivel.net> | 2014-04-12 15:57:59 -0400 |
commit | 21a2d32ffc2a535720908c545fb2b75e181f32a1 (patch) | |
tree | e0f093aa4a9e7a0b1ba9499966fea1dd44212e58 /plugins | |
parent | 5ce6c865952d786bd472f9ca27dfa9245feb759b (diff) | |
download | ansible-21a2d32ffc2a535720908c545fb2b75e181f32a1.tar.gz |
Fix empty group in rax.py output
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/inventory/rax.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/inventory/rax.py b/plugins/inventory/rax.py index 039233005d..457c20962a 100755 --- a/plugins/inventory/rax.py +++ b/plugins/inventory/rax.py @@ -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(): |