summaryrefslogtreecommitdiff
path: root/openstackclient/volume
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-11-08 19:11:06 +0000
committerGerrit Code Review <review@openstack.org>2018-11-08 19:11:06 +0000
commit51986b1eae4b03c23641e9631487acc3ffcf458d (patch)
treea0f46622f252012819ae2dbef3467493e14706bf /openstackclient/volume
parentc3a60e11738a95663b3e27c9089671a1eab5f1c6 (diff)
parentf00ffebea61f94f2334d1c1578bc23986bbcf58c (diff)
downloadpython-openstackclient-51986b1eae4b03c23641e9631487acc3ffcf458d.tar.gz
Merge "Remove invalid 'unlock-volume' migration arg"
Diffstat (limited to 'openstackclient/volume')
-rw-r--r--openstackclient/volume/v2/volume.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/openstackclient/volume/v2/volume.py b/openstackclient/volume/v2/volume.py
index 7a5c207a..14a454c2 100644
--- a/openstackclient/volume/v2/volume.py
+++ b/openstackclient/volume/v2/volume.py
@@ -480,21 +480,13 @@ class MigrateVolume(command.Command):
help=_("Enable generic host-based force-migration, "
"which bypasses driver optimizations")
)
- lock_group = parser.add_mutually_exclusive_group()
- lock_group.add_argument(
+ parser.add_argument(
'--lock-volume',
action="store_true",
help=_("If specified, the volume state will be locked "
"and will not allow a migration to be aborted "
"(possibly by another operation)")
)
- lock_group.add_argument(
- '--unlock-volume',
- action="store_true",
- help=_("If specified, the volume state will not be "
- "locked and the a migration can be aborted "
- "(default) (possibly by another operation)")
- )
return parser
def take_action(self, parsed_args):