summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-11-15 03:42:12 +0000
committerGerrit Code Review <review@openstack.org>2016-11-15 03:42:12 +0000
commit57f9c0490bf6a8af92ab0f7f15547a6e9af035bb (patch)
treec39e62ce4dc027083b02efc3bb2b22aba144f4b3
parentea03fa2254a471edef0a655a63c42d7039428323 (diff)
parent3fd502030c00b5d83903788df606144e8a3e2159 (diff)
downloadpython-heatclient-1.6.0.tar.gz
Merge "Change property option into append action"1.6.0
-rw-r--r--heatclient/osc/v1/stack.py3
-rw-r--r--heatclient/tests/functional/osc/v1/test_readonly.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/heatclient/osc/v1/stack.py b/heatclient/osc/v1/stack.py
index 2dcb579..6787f1c 100644
--- a/heatclient/osc/v1/stack.py
+++ b/heatclient/osc/v1/stack.py
@@ -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',
diff --git a/heatclient/tests/functional/osc/v1/test_readonly.py b/heatclient/tests/functional/osc/v1/test_readonly.py
index 9b705d1..4ad38a6 100644
--- a/heatclient/tests/functional/osc/v1/test_readonly.py
+++ b/heatclient/tests/functional/osc/v1/test_readonly.py
@@ -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')