--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
This commit is contained in:
jiaxi 2015-07-19 02:39:06 -04:00 committed by Steve Martinelli
parent b08dd6f132
commit 9c95b37832
3 changed files with 3 additions and 0 deletions

View File

@ -263,6 +263,7 @@ class UnsetSnapshot(command.Command):
default=[], default=[],
help='Property to remove from snapshot ' help='Property to remove from snapshot '
'(repeat to remove multiple values)', '(repeat to remove multiple values)',
required=True,
) )
return parser return parser

View File

@ -166,6 +166,7 @@ class UnsetVolumeType(command.Command):
default=[], default=[],
help='Property to remove from volume type ' help='Property to remove from volume type '
'(repeat option to remove multiple properties)', '(repeat option to remove multiple properties)',
required=True,
) )
return parser return parser

View File

@ -437,6 +437,7 @@ class UnsetVolume(command.Command):
default=[], default=[],
help='Property to remove from volume ' help='Property to remove from volume '
'(repeat option to remove multiple properties)', '(repeat option to remove multiple properties)',
required=True,
) )
return parser return parser