From 1a78c76250806340c32e816e5a900abf2c600954 Mon Sep 17 00:00:00 2001 From: Tang Chen Date: Tue, 30 Aug 2016 14:03:22 +0800 Subject: [PATCH] Trivial: Rename ListTransferRequests to ListTransferRequest The class name should use plural. Change-Id: I2de2489ff9aa60c2d1bf12743cbd41f2091739ca --- openstackclient/tests/unit/volume/v1/test_transfer_request.py | 2 +- openstackclient/tests/unit/volume/v2/test_transfer_request.py | 2 +- openstackclient/volume/v1/volume_transfer_request.py | 4 ++-- openstackclient/volume/v2/volume_transfer_request.py | 4 ++-- setup.cfg | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/openstackclient/tests/unit/volume/v1/test_transfer_request.py b/openstackclient/tests/unit/volume/v1/test_transfer_request.py index c3b8dbcea2..e89c505647 100644 --- a/openstackclient/tests/unit/volume/v1/test_transfer_request.py +++ b/openstackclient/tests/unit/volume/v1/test_transfer_request.py @@ -192,7 +192,7 @@ class TestTransferList(TestTransfer): self.transfer_mock.list.return_value = [self.volume_transfers] # 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): arglist = [] diff --git a/openstackclient/tests/unit/volume/v2/test_transfer_request.py b/openstackclient/tests/unit/volume/v2/test_transfer_request.py index a18e4c52dd..b4f890896c 100644 --- a/openstackclient/tests/unit/volume/v2/test_transfer_request.py +++ b/openstackclient/tests/unit/volume/v2/test_transfer_request.py @@ -192,7 +192,7 @@ class TestTransferList(TestTransfer): self.transfer_mock.list.return_value = [self.volume_transfers] # 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): arglist = [] diff --git a/openstackclient/volume/v1/volume_transfer_request.py b/openstackclient/volume/v1/volume_transfer_request.py index 8c5055282a..a985f8e598 100644 --- a/openstackclient/volume/v1/volume_transfer_request.py +++ b/openstackclient/volume/v1/volume_transfer_request.py @@ -91,11 +91,11 @@ class DeleteTransferRequest(command.Command): raise exceptions.CommandError(msg) -class ListTransferRequests(command.Lister): +class ListTransferRequest(command.Lister): """Lists all volume transfer requests.""" 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( '--all-projects', dest='all_projects', diff --git a/openstackclient/volume/v2/volume_transfer_request.py b/openstackclient/volume/v2/volume_transfer_request.py index f5de8d7ae0..8e79807cab 100644 --- a/openstackclient/volume/v2/volume_transfer_request.py +++ b/openstackclient/volume/v2/volume_transfer_request.py @@ -91,11 +91,11 @@ class DeleteTransferRequest(command.Command): raise exceptions.CommandError(msg) -class ListTransferRequests(command.Lister): +class ListTransferRequest(command.Lister): """Lists all volume transfer requests.""" 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( '--all-projects', dest='all_projects', diff --git a/setup.cfg b/setup.cfg index 81232ef183..3e6486a23d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -485,7 +485,7 @@ openstack.volume.v1 = 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_list = openstackclient.volume.v1.volume_transfer_request:ListTransferRequests + volume_transfer_request_list = openstackclient.volume.v1.volume_transfer_request:ListTransferRequest openstack.volume.v2 = 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_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] source-dir = doc/source