diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-12-14 22:29:38 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-12-14 22:29:38 +0000 |
| commit | 79e67089ddb083a2853ebe03267ef48606f1a4e3 (patch) | |
| tree | 1673139e3003dc8e30b0c9affe13453d7c264f67 /openstackclient/compute | |
| parent | 1ee5191cec53df588d51a7cee31cfe9cf3a57a1b (diff) | |
| parent | 079123bb0b29fba19fa1b12d545493cbbd2d7024 (diff) | |
| download | python-openstackclient-79e67089ddb083a2853ebe03267ef48606f1a4e3.tar.gz | |
Merge "Remote security group name not displayed for rule"
Diffstat (limited to 'openstackclient/compute')
| -rw-r--r-- | openstackclient/compute/v2/security_group.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openstackclient/compute/v2/security_group.py b/openstackclient/compute/v2/security_group.py index 8844f5cc..a514085b 100644 --- a/openstackclient/compute/v2/security_group.py +++ b/openstackclient/compute/v2/security_group.py @@ -54,6 +54,11 @@ def _xform_security_group_rule(sgroup): info['ip_protocol'] = '' elif info['ip_protocol'].lower() == 'icmp': info['port_range'] = '' + group = info.pop('group') + if 'name' in group: + info['remote_security_group'] = group['name'] + else: + info['remote_security_group'] = '' return info @@ -299,6 +304,7 @@ class ListSecurityGroupRule(lister.Lister): "IP Protocol", "IP Range", "Port Range", + "Remote Security Group", ) return (column_headers, (utils.get_item_properties( |
