Trivial: Rename ListTransferRequests to ListTransferRequest
The class name should use plural. Change-Id: I2de2489ff9aa60c2d1bf12743cbd41f2091739ca
This commit is contained in:
parent
d2273ecea5
commit
1a78c76250
@ -192,7 +192,7 @@ class TestTransferList(TestTransfer):
|
|||||||
self.transfer_mock.list.return_value = [self.volume_transfers]
|
self.transfer_mock.list.return_value = [self.volume_transfers]
|
||||||
|
|
||||||
# Get the command object to test
|
# Get the command object to test
|
||||||
self.cmd = volume_transfer_request.ListTransferRequests(self.app, None)
|
self.cmd = volume_transfer_request.ListTransferRequest(self.app, None)
|
||||||
|
|
||||||
def test_transfer_list_without_argument(self):
|
def test_transfer_list_without_argument(self):
|
||||||
arglist = []
|
arglist = []
|
||||||
|
@ -192,7 +192,7 @@ class TestTransferList(TestTransfer):
|
|||||||
self.transfer_mock.list.return_value = [self.volume_transfers]
|
self.transfer_mock.list.return_value = [self.volume_transfers]
|
||||||
|
|
||||||
# Get the command object to test
|
# Get the command object to test
|
||||||
self.cmd = volume_transfer_request.ListTransferRequests(self.app, None)
|
self.cmd = volume_transfer_request.ListTransferRequest(self.app, None)
|
||||||
|
|
||||||
def test_transfer_list_without_argument(self):
|
def test_transfer_list_without_argument(self):
|
||||||
arglist = []
|
arglist = []
|
||||||
|
@ -91,11 +91,11 @@ class DeleteTransferRequest(command.Command):
|
|||||||
raise exceptions.CommandError(msg)
|
raise exceptions.CommandError(msg)
|
||||||
|
|
||||||
|
|
||||||
class ListTransferRequests(command.Lister):
|
class ListTransferRequest(command.Lister):
|
||||||
"""Lists all volume transfer requests."""
|
"""Lists all volume transfer requests."""
|
||||||
|
|
||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super(ListTransferRequests, self).get_parser(prog_name)
|
parser = super(ListTransferRequest, self).get_parser(prog_name)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--all-projects',
|
'--all-projects',
|
||||||
dest='all_projects',
|
dest='all_projects',
|
||||||
|
@ -91,11 +91,11 @@ class DeleteTransferRequest(command.Command):
|
|||||||
raise exceptions.CommandError(msg)
|
raise exceptions.CommandError(msg)
|
||||||
|
|
||||||
|
|
||||||
class ListTransferRequests(command.Lister):
|
class ListTransferRequest(command.Lister):
|
||||||
"""Lists all volume transfer requests."""
|
"""Lists all volume transfer requests."""
|
||||||
|
|
||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super(ListTransferRequests, self).get_parser(prog_name)
|
parser = super(ListTransferRequest, self).get_parser(prog_name)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--all-projects',
|
'--all-projects',
|
||||||
dest='all_projects',
|
dest='all_projects',
|
||||||
|
@ -485,7 +485,7 @@ openstack.volume.v1 =
|
|||||||
|
|
||||||
volume_transfer_request_create = openstackclient.volume.v1.volume_transfer_request:CreateTransferRequest
|
volume_transfer_request_create = openstackclient.volume.v1.volume_transfer_request:CreateTransferRequest
|
||||||
volume_transfer_request_delete = openstackclient.volume.v1.volume_transfer_request:DeleteTransferRequest
|
volume_transfer_request_delete = openstackclient.volume.v1.volume_transfer_request:DeleteTransferRequest
|
||||||
volume_transfer_request_list = openstackclient.volume.v1.volume_transfer_request:ListTransferRequests
|
volume_transfer_request_list = openstackclient.volume.v1.volume_transfer_request:ListTransferRequest
|
||||||
|
|
||||||
openstack.volume.v2 =
|
openstack.volume.v2 =
|
||||||
backup_create = openstackclient.volume.v2.backup:CreateBackup
|
backup_create = openstackclient.volume.v2.backup:CreateBackup
|
||||||
@ -535,7 +535,7 @@ openstack.volume.v2 =
|
|||||||
|
|
||||||
volume_transfer_request_create = openstackclient.volume.v2.volume_transfer_request:CreateTransferRequest
|
volume_transfer_request_create = openstackclient.volume.v2.volume_transfer_request:CreateTransferRequest
|
||||||
volume_transfer_request_delete = openstackclient.volume.v2.volume_transfer_request:DeleteTransferRequest
|
volume_transfer_request_delete = openstackclient.volume.v2.volume_transfer_request:DeleteTransferRequest
|
||||||
volume_transfer_request_list = openstackclient.volume.v2.volume_transfer_request:ListTransferRequests
|
volume_transfer_request_list = openstackclient.volume.v2.volume_transfer_request:ListTransferRequest
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
source-dir = doc/source
|
source-dir = doc/source
|
||||||
|
Loading…
Reference in New Issue
Block a user