mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
Merge "Fix --security-group for port list"
This commit is contained in:
commit
98fbc56603
2 changed files with 2 additions and 2 deletions
|
|
@ -843,7 +843,7 @@ class ListPort(command.Lister):
|
|||
self.app.client_manager, parsed_args
|
||||
)
|
||||
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)
|
||||
|
||||
|
|
|
|||
|
|
@ -1662,7 +1662,7 @@ class TestListPort(TestPort):
|
|||
|
||||
columns, data = self.cmd.take_action(parsed_args)
|
||||
filters = {
|
||||
'security_groups': ['sg-id1', 'sg-id2'],
|
||||
'security_group_ids': ['sg-id1', 'sg-id2'],
|
||||
'fields': LIST_FIELDS_TO_RETRIEVE,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue