Merge "Change property option into append action"
This commit is contained in:
commit
57f9c0490b
|
@ -16,7 +16,6 @@
|
|||
import logging
|
||||
import sys
|
||||
|
||||
from osc_lib.cli import parseractions
|
||||
from osc_lib.command import command
|
||||
from osc_lib import exceptions as exc
|
||||
from osc_lib import utils
|
||||
|
@ -453,7 +452,7 @@ class ListStack(command.Lister):
|
|||
metavar='<key=value>',
|
||||
help=_('Filter properties to apply on returned stacks (repeat to '
|
||||
'filter on multiple properties)'),
|
||||
action=parseractions.KeyValueAction
|
||||
action='append'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--tags',
|
||||
|
|
|
@ -61,6 +61,9 @@ class SimpleReadOnlyOpenStackClientTest(base.OpenStackClientTestBase):
|
|||
def test_openstack_stack_list_debug(self):
|
||||
self.openstack('stack list', flags='--debug')
|
||||
|
||||
def test_openstack_stack_list_property(self):
|
||||
self.openstack('stack list --property id=123')
|
||||
|
||||
def test_openstack_help_cmd(self):
|
||||
help_text = self.openstack('help stack list')
|
||||
lines = help_text.split('\n')
|
||||
|
|
Loading…
Reference in New Issue