summaryrefslogtreecommitdiff
path: root/openstackclient/volume/v1/volume_transfer_request.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/volume/v1/volume_transfer_request.py')
-rw-r--r--openstackclient/volume/v1/volume_transfer_request.py22
1 files changed, 2 insertions, 20 deletions
diff --git a/openstackclient/volume/v1/volume_transfer_request.py b/openstackclient/volume/v1/volume_transfer_request.py
index f5b567b9..6f79658e 100644
--- a/openstackclient/volume/v1/volume_transfer_request.py
+++ b/openstackclient/volume/v1/volume_transfer_request.py
@@ -14,7 +14,6 @@
"""Volume v1 transfer action implementations"""
-import argparse
import logging
from osc_lib.command import command
@@ -39,12 +38,6 @@ class AcceptTransferRequest(command.ShowOne):
help=_('Volume transfer request to accept (ID only)'),
)
parser.add_argument(
- 'old_auth_key',
- metavar="<key>",
- nargs="?",
- help=argparse.SUPPRESS,
- )
- parser.add_argument(
'--auth-key',
metavar="<key>",
help=_('Volume transfer request authentication key'),
@@ -64,20 +57,9 @@ class AcceptTransferRequest(command.ShowOne):
# move on and attempt with the user-supplied information
transfer_request_id = parsed_args.transfer_request
- # Remain backward-compatible for the previous command layout
- # TODO(dtroyer): Remove this back-compat in 4.0 or Oct 2017
if not parsed_args.auth_key:
- if parsed_args.old_auth_key:
- # Move the old one into the correct place
- parsed_args.auth_key = parsed_args.old_auth_key
- self.log.warning(_(
- 'Specifying the auth-key as a positional argument '
- 'has been deprecated. Please use the --auth-key '
- 'option in the future.'
- ))
- else:
- msg = _("argument --auth-key is required")
- raise exceptions.CommandError(msg)
+ msg = _("argument --auth-key is required")
+ raise exceptions.CommandError(msg)
transfer_accept = volume_client.transfers.accept(
transfer_request_id,