summaryrefslogtreecommitdiff
path: root/openstackclient/volume
diff options
context:
space:
mode:
authorHuanxuan Ao <huanxuan.ao@easystack.cn>2016-09-21 15:08:14 +0800
committerHuanxuan Ao <huanxuan.ao@easystack.cn>2016-09-21 15:47:55 +0800
commitbba5c9047f81439a18e4e8be434f51abab83a24a (patch)
tree8ee039aaa4816045efc7ce5e9d15d805eda79b66 /openstackclient/volume
parent4a8b802d6b1b4de4979260234b0fda4b18a01699 (diff)
downloadpython-openstackclient-bba5c9047f81439a18e4e8be434f51abab83a24a.tar.gz
Fix "volume unset" command pass normally when nothing specified
When nothing specified in "volume unset" command, there will be an error message says that the "--properties" option is required, it is unusual behaviour, this patch fix it and also add unit test for it. Also, this patch add unit test for "volume show" command by the way. Change-Id: I5b5d587670acf0af4262b8521292455bf9f60fe5 Partial-bug: #1588588
Diffstat (limited to 'openstackclient/volume')
-rw-r--r--openstackclient/volume/v1/volume.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/openstackclient/volume/v1/volume.py b/openstackclient/volume/v1/volume.py
index 69bf3803..89fa2014 100644
--- a/openstackclient/volume/v1/volume.py
+++ b/openstackclient/volume/v1/volume.py
@@ -452,10 +452,8 @@ class UnsetVolume(command.Command):
'--property',
metavar='<key>',
action='append',
- default=[],
help=_('Remove a property from volume '
'(repeat option to remove multiple properties)'),
- required=True,
)
return parser