diff options
| author | Mohan Muppidi <mkumar2301@gmail.com> | 2016-02-28 09:43:44 +0000 |
|---|---|---|
| committer | Mohan Muppidi <mkumar2301@gmail.com> | 2016-02-29 17:23:29 +0000 |
| commit | 3d7430463c733e1dfcf8487ce955abd863f9f617 (patch) | |
| tree | 59af01ecbe0ab537a34488ca96fa8fe264a5b4a4 /openstackclient/identity/v3/project.py | |
| parent | 2819450be5d4fa57c6efdb4cd225f59bab894fba (diff) | |
| download | python-openstackclient-3d7430463c733e1dfcf8487ce955abd863f9f617.tar.gz | |
take_action() method from command.Command shouldn't return
command.Command and command.Showone are base classes implemented
in cliff framework. Showone extends Command to allow take_action()
to return data to be formatted using a user-selectable formatter.
Most of the classes which are extended from Command in
openstackclient/identity/v3/ in some cases return data or return
nothing where it is not necessary, this commit fixes most of them.
Change-Id: I84c72ea4d6680f8bdbef5449316dd9a8af8c8286
Closes-Bug: 1550892
Diffstat (limited to 'openstackclient/identity/v3/project.py')
| -rw-r--r-- | openstackclient/identity/v3/project.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openstackclient/identity/v3/project.py b/openstackclient/identity/v3/project.py index 61db8614..a379c6fa 100644 --- a/openstackclient/identity/v3/project.py +++ b/openstackclient/identity/v3/project.py @@ -153,7 +153,6 @@ class DeleteProject(command.Command): project_obj = utils.find_resource(identity_client.projects, project) identity_client.projects.delete(project_obj.id) - return class ListProject(command.Lister): @@ -267,8 +266,8 @@ class SetProject(command.Command): and not parsed_args.property and not parsed_args.disable): return - - project = common.find_project(identity_client, parsed_args.project, + project = common.find_project(identity_client, + parsed_args.project, parsed_args.domain) kwargs = {} @@ -284,7 +283,6 @@ class SetProject(command.Command): kwargs.update(parsed_args.property) identity_client.projects.update(project.id, **kwargs) - return class ShowProject(command.ShowOne): |
