Merge "Change property option into append action"

This commit is contained in:
Jenkins 2016-11-15 03:42:12 +00:00 committed by Gerrit Code Review
commit 57f9c0490b
2 changed files with 4 additions and 2 deletions

View File

@ -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',

View File

@ -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')