diff options
| author | jiaxi <jiaxi@unitedstack.com> | 2015-07-19 02:39:06 -0400 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2015-07-19 15:46:14 +0000 |
| commit | 9c95b378323fdc37d403c3757064349c9aaa509b (patch) | |
| tree | 462cc1097963ae028e4077e8a7be22b6bcb81e8f /openstackclient/volume | |
| parent | b08dd6f13205e6ba3ca39f202e450196a37d0c23 (diff) | |
| download | python-openstackclient-9c95b378323fdc37d403c3757064349c9aaa509b.tar.gz | |
--property should be required in `os unset` commands
The three commands below
openstack volume unset
openstack snapshot unset
openstack volume type unset
Should have --property as a required argument,
not optional. The reason is the command will not work
without --property.
Closes-Bug: #1475872
Change-Id: Ib9e29392472db38982cc2817af2dd5055f5a01ca
Diffstat (limited to 'openstackclient/volume')
| -rw-r--r-- | openstackclient/volume/v1/snapshot.py | 1 | ||||
| -rw-r--r-- | openstackclient/volume/v1/type.py | 1 | ||||
| -rw-r--r-- | openstackclient/volume/v1/volume.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/openstackclient/volume/v1/snapshot.py b/openstackclient/volume/v1/snapshot.py index 5ec2b3c5..e81efb5a 100644 --- a/openstackclient/volume/v1/snapshot.py +++ b/openstackclient/volume/v1/snapshot.py @@ -263,6 +263,7 @@ class UnsetSnapshot(command.Command): default=[], help='Property to remove from snapshot ' '(repeat to remove multiple values)', + required=True, ) return parser diff --git a/openstackclient/volume/v1/type.py b/openstackclient/volume/v1/type.py index 46d1828b..fced73b9 100644 --- a/openstackclient/volume/v1/type.py +++ b/openstackclient/volume/v1/type.py @@ -166,6 +166,7 @@ class UnsetVolumeType(command.Command): default=[], help='Property to remove from volume type ' '(repeat option to remove multiple properties)', + required=True, ) return parser diff --git a/openstackclient/volume/v1/volume.py b/openstackclient/volume/v1/volume.py index ad9671e3..884611ec 100644 --- a/openstackclient/volume/v1/volume.py +++ b/openstackclient/volume/v1/volume.py @@ -437,6 +437,7 @@ class UnsetVolume(command.Command): default=[], help='Property to remove from volume ' '(repeat option to remove multiple properties)', + required=True, ) return parser |
