Trivial: Remove useless return

If a function returns nothing, do not add return in the end.

Change-Id: I298b8717462f68d3076a1619d674775be2a94c42
This commit is contained in:
Tang Chen 2016-03-07 17:54:06 +08:00
parent 8787ad2b49
commit fc24f37ae2
9 changed files with 0 additions and 13 deletions

View File

@ -199,8 +199,6 @@ class ClientManager(object):
self._auth_setup_completed = True
return
@property
def auth_ref(self):
"""Dereference will trigger an auth if it hasn't already"""

View File

@ -87,7 +87,6 @@ class DeleteEndpoint(command.Command):
def take_action(self, parsed_args):
identity_client = self.app.client_manager.identity
identity_client.endpoints.delete(parsed_args.endpoint)
return
class ListEndpoint(command.Lister):

View File

@ -119,7 +119,6 @@ class DeleteProject(command.Command):
project,
)
identity_client.tenants.delete(project_obj.id)
return
class ListProject(command.Lister):
@ -222,7 +221,6 @@ class SetProject(command.Command):
del kwargs['name']
identity_client.tenants.update(project.id, **kwargs)
return
class ShowProject(command.ShowOne):
@ -317,4 +315,3 @@ class UnsetProject(command.Command):
if key in kwargs:
kwargs[key] = None
identity_client.tenants.update(project.id, **kwargs)
return

View File

@ -126,7 +126,6 @@ class DeleteRole(command.Command):
role,
)
identity_client.roles.delete(role_obj.id)
return
class ListRole(command.Lister):

View File

@ -101,7 +101,6 @@ class DeleteService(command.Command):
identity_client = self.app.client_manager.identity
service = common.find_service(identity_client, parsed_args.service)
identity_client.services.delete(service.id)
return
class ListService(command.Lister):

View File

@ -55,4 +55,3 @@ class RevokeToken(command.Command):
identity_client = self.app.client_manager.identity
identity_client.tokens.delete(parsed_args.token)
return

View File

@ -143,7 +143,6 @@ class DeleteUser(command.Command):
user,
)
identity_client.users.delete(user_obj.id)
return
class ListUser(command.Lister):
@ -330,7 +329,6 @@ class SetUser(command.Command):
kwargs['enabled'] = False
identity_client.users.update(user.id, **kwargs)
return
class ShowUser(command.ShowOne):

View File

@ -338,7 +338,6 @@ class SetNetwork(command.Command):
raise exceptions.CommandError(msg)
client.update_network(obj, **attrs)
return
class ShowNetwork(common.NetworkAndComputeShowOne):

View File

@ -123,7 +123,6 @@ class SetSecurityGroup(common.NetworkAndComputeCommand):
# if there were no updates. Maintain this behavior and issue
# the update.
client.update_security_group(obj, **attrs)
return
def take_action_compute(self, client, parsed_args):
data = utils.find_resource(