diff options
| author | Steve Martinelli <stevemar@ca.ibm.com> | 2013-07-11 22:40:24 -0500 |
|---|---|---|
| committer | Steve Martinelli <stevemar@ca.ibm.com> | 2013-07-12 11:07:33 -0500 |
| commit | 1a0d5ccc68f65394292992b48afe20241e89e7b8 (patch) | |
| tree | e28cadeb264d0b2701bc20ea5ef2d636ef991cec /openstackclient/identity/v3 | |
| parent | f0d3bf85d8102b9bdfe83852588f9bdc895f32c6 (diff) | |
| download | python-openstackclient-1a0d5ccc68f65394292992b48afe20241e89e7b8.tar.gz | |
Remove api = apiName calls from each method
As discussed in https://review.openstack.org/#/c/36352/ for each
command, we were setting api = identity or volume... etc,
this was for an old way of calling commands that are is no longer
used.
Also removed openstackclient/common/command.py
Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
Diffstat (limited to 'openstackclient/identity/v3')
| -rw-r--r-- | openstackclient/identity/v3/credential.py | 5 | ||||
| -rw-r--r-- | openstackclient/identity/v3/domain.py | 5 | ||||
| -rw-r--r-- | openstackclient/identity/v3/endpoint.py | 5 | ||||
| -rw-r--r-- | openstackclient/identity/v3/group.py | 8 | ||||
| -rw-r--r-- | openstackclient/identity/v3/oauth.py | 8 | ||||
| -rw-r--r-- | openstackclient/identity/v3/policy.py | 5 | ||||
| -rw-r--r-- | openstackclient/identity/v3/project.py | 5 | ||||
| -rw-r--r-- | openstackclient/identity/v3/role.py | 7 | ||||
| -rw-r--r-- | openstackclient/identity/v3/service.py | 5 | ||||
| -rw-r--r-- | openstackclient/identity/v3/user.py | 5 |
10 files changed, 0 insertions, 58 deletions
diff --git a/openstackclient/identity/v3/credential.py b/openstackclient/identity/v3/credential.py index c9826052..a2fb43a2 100644 --- a/openstackclient/identity/v3/credential.py +++ b/openstackclient/identity/v3/credential.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class CreateCredential(show.ShowOne): """Create credential command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateCredential') def get_parser(self, prog_name): @@ -79,7 +78,6 @@ class CreateCredential(show.ShowOne): class DeleteCredential(command.Command): """Delete credential command""" - api = 'identity' log = logging.getLogger(__name__ + '.DeleteCredential') def get_parser(self, prog_name): @@ -101,7 +99,6 @@ class DeleteCredential(command.Command): class ListCredential(lister.Lister): """List credential command""" - api = 'identity' log = logging.getLogger(__name__ + '.ListCredential') def take_action(self, parsed_args): @@ -118,7 +115,6 @@ class ListCredential(lister.Lister): class SetCredential(command.Command): """Set credential command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetCredential') def get_parser(self, prog_name): @@ -178,7 +174,6 @@ class SetCredential(command.Command): class ShowCredential(show.ShowOne): """Show credential command""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowCredential') def get_parser(self, prog_name): diff --git a/openstackclient/identity/v3/domain.py b/openstackclient/identity/v3/domain.py index e3eaec2f..f6064a58 100644 --- a/openstackclient/identity/v3/domain.py +++ b/openstackclient/identity/v3/domain.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class CreateDomain(show.ShowOne): """Create domain command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateDomain') def get_parser(self, prog_name): @@ -72,7 +71,6 @@ class CreateDomain(show.ShowOne): class DeleteDomain(command.Command): """Delete domain command""" - api = 'identity' log = logging.getLogger(__name__ + '.DeleteDomain') def get_parser(self, prog_name): @@ -96,7 +94,6 @@ class DeleteDomain(command.Command): class ListDomain(lister.Lister): """List domain command""" - api = 'identity' log = logging.getLogger(__name__ + '.ListDomain') def take_action(self, parsed_args): @@ -113,7 +110,6 @@ class ListDomain(lister.Lister): class SetDomain(command.Command): """Set domain command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetDomain') def get_parser(self, prog_name): @@ -172,7 +168,6 @@ class SetDomain(command.Command): class ShowDomain(show.ShowOne): """Show domain command""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowDomain') def get_parser(self, prog_name): diff --git a/openstackclient/identity/v3/endpoint.py b/openstackclient/identity/v3/endpoint.py index 4d9b6808..c5f3ebad 100644 --- a/openstackclient/identity/v3/endpoint.py +++ b/openstackclient/identity/v3/endpoint.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class CreateEndpoint(show.ShowOne): """Create endpoint command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateEndpoint') def get_parser(self, prog_name): @@ -90,7 +89,6 @@ class CreateEndpoint(show.ShowOne): class DeleteEndpoint(command.Command): """Delete endpoint command""" - api = 'identity' log = logging.getLogger(__name__ + '.DeleteEndpoint') def get_parser(self, prog_name): @@ -113,7 +111,6 @@ class DeleteEndpoint(command.Command): class ListEndpoint(lister.Lister): """List endpoint command""" - api = 'identity' log = logging.getLogger(__name__ + '.ListEndpoint') def get_parser(self, prog_name): @@ -150,7 +147,6 @@ class ListEndpoint(lister.Lister): class SetEndpoint(command.Command): """Set endpoint command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetEndpoint') def get_parser(self, prog_name): @@ -220,7 +216,6 @@ class SetEndpoint(command.Command): class ShowEndpoint(show.ShowOne): """Show endpoint command""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowEndpoint') def get_parser(self, prog_name): diff --git a/openstackclient/identity/v3/group.py b/openstackclient/identity/v3/group.py index 21d73966..ca0493eb 100644 --- a/openstackclient/identity/v3/group.py +++ b/openstackclient/identity/v3/group.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class AddUserToGroup(command.Command): """Add user to group""" - api = 'identity' log = logging.getLogger(__name__ + '.AddUserToGroup') def get_parser(self, prog_name): @@ -67,7 +66,6 @@ class AddUserToGroup(command.Command): class CheckUserInGroup(command.Command): """Checks that user is in a specific group""" - api = 'identity' log = logging.getLogger(__name__ + '.CheckUserInGroup') def get_parser(self, prog_name): @@ -106,7 +104,6 @@ class CheckUserInGroup(command.Command): class CreateGroup(show.ShowOne): """Create group command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateGroup') def get_parser(self, prog_name): @@ -147,7 +144,6 @@ class CreateGroup(show.ShowOne): class DeleteGroup(command.Command): """Delete group command""" - api = 'identity' log = logging.getLogger(__name__ + '.DeleteGroup') def get_parser(self, prog_name): @@ -169,7 +165,6 @@ class DeleteGroup(command.Command): class ListGroup(lister.Lister): """List groups and optionally roles assigned to groups""" - api = 'identity' log = logging.getLogger(__name__ + '.ListGroup') def get_parser(self, prog_name): @@ -279,7 +274,6 @@ class ListGroup(lister.Lister): class RemoveUserFromGroup(command.Command): """Remove user to group""" - api = 'identity' log = logging.getLogger(__name__ + '.RemoveUserFromGroup') def get_parser(self, prog_name): @@ -318,7 +312,6 @@ class RemoveUserFromGroup(command.Command): class SetGroup(command.Command): """Set group command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetGroup') def get_parser(self, prog_name): @@ -365,7 +358,6 @@ class SetGroup(command.Command): class ShowGroup(show.ShowOne): """Show group command""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowGroup') def get_parser(self, prog_name): diff --git a/openstackclient/identity/v3/oauth.py b/openstackclient/identity/v3/oauth.py index 0b5ae4db..1e803e15 100644 --- a/openstackclient/identity/v3/oauth.py +++ b/openstackclient/identity/v3/oauth.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class AuthorizeRequestToken(show.ShowOne): """Authorize request token command""" - api = 'identity' log = logging.getLogger(__name__ + '.AuthorizeRequestToken') def get_parser(self, prog_name): @@ -68,7 +67,6 @@ class AuthorizeRequestToken(show.ShowOne): class CreateAccessToken(show.ShowOne): """Create access token command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateAccessToken') def get_parser(self, prog_name): @@ -107,7 +105,6 @@ class CreateAccessToken(show.ShowOne): class CreateConsumer(show.ShowOne): """Create consumer command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateConsumer') def get_parser(self, prog_name): @@ -133,7 +130,6 @@ class CreateConsumer(show.ShowOne): class CreateRequestToken(show.ShowOne): """Create request token command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateRequestToken') def get_parser(self, prog_name): @@ -164,7 +160,6 @@ class CreateRequestToken(show.ShowOne): class DeleteConsumer(command.Command): """Delete consumer command""" - api = 'identity' log = logging.getLogger(__name__ + '.DeleteConsumer') def get_parser(self, prog_name): @@ -188,7 +183,6 @@ class DeleteConsumer(command.Command): class ListConsumer(lister.Lister): """List consumer command""" - api = 'identity' log = logging.getLogger(__name__ + '.ListConsumer') def take_action(self, parsed_args): @@ -205,7 +199,6 @@ class ListConsumer(lister.Lister): class SetConsumer(command.Command): """Set consumer command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetConsumer') def get_parser(self, prog_name): @@ -241,7 +234,6 @@ class SetConsumer(command.Command): class ShowConsumer(show.ShowOne): """Show consumer command""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowConsumer') def get_parser(self, prog_name): diff --git a/openstackclient/identity/v3/policy.py b/openstackclient/identity/v3/policy.py index ccfc3635..ac14cc46 100644 --- a/openstackclient/identity/v3/policy.py +++ b/openstackclient/identity/v3/policy.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class CreatePolicy(show.ShowOne): """Create policy command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreatePolicy') def get_parser(self, prog_name): @@ -61,7 +60,6 @@ class CreatePolicy(show.ShowOne): class DeletePolicy(command.Command): """Delete policy command""" - api = 'identity' log = logging.getLogger(__name__ + '.DeletePolicy') def get_parser(self, prog_name): @@ -83,7 +81,6 @@ class DeletePolicy(command.Command): class ListPolicy(lister.Lister): """List policy command""" - api = 'identity' log = logging.getLogger(__name__ + '.ListPolicy') def get_parser(self, prog_name): @@ -113,7 +110,6 @@ class ListPolicy(lister.Lister): class SetPolicy(command.Command): """Set policy command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetPolicy') def get_parser(self, prog_name): @@ -159,7 +155,6 @@ class SetPolicy(command.Command): class ShowPolicy(show.ShowOne): """Show policy command""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowPolicy') def get_parser(self, prog_name): diff --git a/openstackclient/identity/v3/project.py b/openstackclient/identity/v3/project.py index 84271cd9..9d1e360b 100644 --- a/openstackclient/identity/v3/project.py +++ b/openstackclient/identity/v3/project.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class CreateProject(show.ShowOne): """Create project command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateProject') def get_parser(self, prog_name): @@ -85,7 +84,6 @@ class CreateProject(show.ShowOne): class DeleteProject(command.Command): """Delete project command""" - api = 'identity' log = logging.getLogger(__name__ + '.DeleteProject') def get_parser(self, prog_name): @@ -108,7 +106,6 @@ class DeleteProject(command.Command): class ListProject(lister.Lister): """List project command""" - api = 'identity' log = logging.getLogger(__name__ + '.ListProject') def get_parser(self, prog_name): @@ -137,7 +134,6 @@ class ListProject(lister.Lister): class SetProject(command.Command): """Set project command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetProject') def get_parser(self, prog_name): @@ -199,7 +195,6 @@ class SetProject(command.Command): class ShowProject(show.ShowOne): """Show project command""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowProject') def get_parser(self, prog_name): diff --git a/openstackclient/identity/v3/role.py b/openstackclient/identity/v3/role.py index 7387509a..9be3b784 100644 --- a/openstackclient/identity/v3/role.py +++ b/openstackclient/identity/v3/role.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class AddRole(command.Command): """Adds a role to a user or group on a domain or project""" - api = 'identity' log = logging.getLogger(__name__ + '.AddRole') def get_parser(self, prog_name): @@ -108,7 +107,6 @@ class AddRole(command.Command): class CreateRole(show.ShowOne): """Create new role""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateRole') def get_parser(self, prog_name): @@ -131,7 +129,6 @@ class CreateRole(show.ShowOne): class DeleteRole(command.Command): """Delete existing role""" - api = 'identity' log = logging.getLogger(__name__ + '.DeleteRole') def get_parser(self, prog_name): @@ -155,7 +152,6 @@ class DeleteRole(command.Command): class ListRole(lister.Lister): """List roles""" - api = 'identity' log = logging.getLogger(__name__ + '.ListRole') def take_action(self, parsed_args): @@ -172,7 +168,6 @@ class ListRole(lister.Lister): class RemoveRole(command.Command): """Remove role command""" - api = 'identity' log = logging.getLogger(__name__ + '.RemoveRole') def get_parser(self, prog_name): @@ -251,7 +246,6 @@ class RemoveRole(command.Command): class SetRole(command.Command): """Set role command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetRole') def get_parser(self, prog_name): @@ -285,7 +279,6 @@ class SetRole(command.Command): class ShowRole(show.ShowOne): """Show single role""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowRole') def get_parser(self, prog_name): diff --git a/openstackclient/identity/v3/service.py b/openstackclient/identity/v3/service.py index 023c858e..5c82284c 100644 --- a/openstackclient/identity/v3/service.py +++ b/openstackclient/identity/v3/service.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class CreateService(show.ShowOne): """Create service command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateService') def get_parser(self, prog_name): @@ -69,7 +68,6 @@ class CreateService(show.ShowOne): class DeleteService(command.Command): """Delete service command""" - api = 'identity' log = logging.getLogger(__name__ + '.DeleteService') def get_parser(self, prog_name): @@ -94,7 +92,6 @@ class DeleteService(command.Command): class ListService(lister.Lister): """List service command""" - api = 'identity' log = logging.getLogger(__name__ + '.ListService') def take_action(self, parsed_args): @@ -111,7 +108,6 @@ class ListService(lister.Lister): class SetService(show.ShowOne): """Set service command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetService') def get_parser(self, prog_name): @@ -165,7 +161,6 @@ class SetService(show.ShowOne): class ShowService(show.ShowOne): """Show service command""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowService') def get_parser(self, prog_name): diff --git a/openstackclient/identity/v3/user.py b/openstackclient/identity/v3/user.py index 53550cda..aac70274 100644 --- a/openstackclient/identity/v3/user.py +++ b/openstackclient/identity/v3/user.py @@ -28,7 +28,6 @@ from openstackclient.common import utils class CreateUser(show.ShowOne): """Create user command""" - api = 'identity' log = logging.getLogger(__name__ + '.CreateUser') def get_parser(self, prog_name): @@ -113,7 +112,6 @@ class CreateUser(show.ShowOne): class DeleteUser(command.Command): """Delete user command""" - api = 'identity' log = logging.getLogger(__name__ + '.DeleteUser') def get_parser(self, prog_name): @@ -137,7 +135,6 @@ class DeleteUser(command.Command): class ListUser(lister.Lister): """List users and optionally roles assigned to users""" - api = 'identity' log = logging.getLogger(__name__ + '.ListUser') def get_parser(self, prog_name): @@ -249,7 +246,6 @@ class ListUser(lister.Lister): class SetUser(command.Command): """Set user command""" - api = 'identity' log = logging.getLogger(__name__ + '.SetUser') def get_parser(self, prog_name): @@ -338,7 +334,6 @@ class SetUser(command.Command): class ShowUser(show.ShowOne): """Show user command""" - api = 'identity' log = logging.getLogger(__name__ + '.ShowUser') def get_parser(self, prog_name): |
