Merge "Fix --security-group for port list"
This commit is contained in:
commit
98fbc56603
@ -843,7 +843,7 @@ class ListPort(command.Lister):
|
|||||||
self.app.client_manager, parsed_args
|
self.app.client_manager, parsed_args
|
||||||
)
|
)
|
||||||
if parsed_args.security_groups:
|
if parsed_args.security_groups:
|
||||||
filters['security_groups'] = parsed_args.security_groups
|
filters['security_group_ids'] = parsed_args.security_groups
|
||||||
|
|
||||||
_tag.get_tag_filtering_args(parsed_args, filters)
|
_tag.get_tag_filtering_args(parsed_args, filters)
|
||||||
|
|
||||||
|
@ -1662,7 +1662,7 @@ class TestListPort(TestPort):
|
|||||||
|
|
||||||
columns, data = self.cmd.take_action(parsed_args)
|
columns, data = self.cmd.take_action(parsed_args)
|
||||||
filters = {
|
filters = {
|
||||||
'security_groups': ['sg-id1', 'sg-id2'],
|
'security_group_ids': ['sg-id1', 'sg-id2'],
|
||||||
'fields': LIST_FIELDS_TO_RETRIEVE,
|
'fields': LIST_FIELDS_TO_RETRIEVE,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user