Trivial: Remove useless return
If a function returns nothing, do not add return in the end. Change-Id: I298b8717462f68d3076a1619d674775be2a94c42
This commit is contained in:
parent
8787ad2b49
commit
fc24f37ae2
@ -199,8 +199,6 @@ class ClientManager(object):
|
|||||||
|
|
||||||
self._auth_setup_completed = True
|
self._auth_setup_completed = True
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def auth_ref(self):
|
def auth_ref(self):
|
||||||
"""Dereference will trigger an auth if it hasn't already"""
|
"""Dereference will trigger an auth if it hasn't already"""
|
||||||
|
@ -87,7 +87,6 @@ class DeleteEndpoint(command.Command):
|
|||||||
def take_action(self, parsed_args):
|
def take_action(self, parsed_args):
|
||||||
identity_client = self.app.client_manager.identity
|
identity_client = self.app.client_manager.identity
|
||||||
identity_client.endpoints.delete(parsed_args.endpoint)
|
identity_client.endpoints.delete(parsed_args.endpoint)
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
class ListEndpoint(command.Lister):
|
class ListEndpoint(command.Lister):
|
||||||
|
@ -119,7 +119,6 @@ class DeleteProject(command.Command):
|
|||||||
project,
|
project,
|
||||||
)
|
)
|
||||||
identity_client.tenants.delete(project_obj.id)
|
identity_client.tenants.delete(project_obj.id)
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
class ListProject(command.Lister):
|
class ListProject(command.Lister):
|
||||||
@ -222,7 +221,6 @@ class SetProject(command.Command):
|
|||||||
del kwargs['name']
|
del kwargs['name']
|
||||||
|
|
||||||
identity_client.tenants.update(project.id, **kwargs)
|
identity_client.tenants.update(project.id, **kwargs)
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
class ShowProject(command.ShowOne):
|
class ShowProject(command.ShowOne):
|
||||||
@ -317,4 +315,3 @@ class UnsetProject(command.Command):
|
|||||||
if key in kwargs:
|
if key in kwargs:
|
||||||
kwargs[key] = None
|
kwargs[key] = None
|
||||||
identity_client.tenants.update(project.id, **kwargs)
|
identity_client.tenants.update(project.id, **kwargs)
|
||||||
return
|
|
||||||
|
@ -126,7 +126,6 @@ class DeleteRole(command.Command):
|
|||||||
role,
|
role,
|
||||||
)
|
)
|
||||||
identity_client.roles.delete(role_obj.id)
|
identity_client.roles.delete(role_obj.id)
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
class ListRole(command.Lister):
|
class ListRole(command.Lister):
|
||||||
|
@ -101,7 +101,6 @@ class DeleteService(command.Command):
|
|||||||
identity_client = self.app.client_manager.identity
|
identity_client = self.app.client_manager.identity
|
||||||
service = common.find_service(identity_client, parsed_args.service)
|
service = common.find_service(identity_client, parsed_args.service)
|
||||||
identity_client.services.delete(service.id)
|
identity_client.services.delete(service.id)
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
class ListService(command.Lister):
|
class ListService(command.Lister):
|
||||||
|
@ -55,4 +55,3 @@ class RevokeToken(command.Command):
|
|||||||
identity_client = self.app.client_manager.identity
|
identity_client = self.app.client_manager.identity
|
||||||
|
|
||||||
identity_client.tokens.delete(parsed_args.token)
|
identity_client.tokens.delete(parsed_args.token)
|
||||||
return
|
|
||||||
|
@ -143,7 +143,6 @@ class DeleteUser(command.Command):
|
|||||||
user,
|
user,
|
||||||
)
|
)
|
||||||
identity_client.users.delete(user_obj.id)
|
identity_client.users.delete(user_obj.id)
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
class ListUser(command.Lister):
|
class ListUser(command.Lister):
|
||||||
@ -330,7 +329,6 @@ class SetUser(command.Command):
|
|||||||
kwargs['enabled'] = False
|
kwargs['enabled'] = False
|
||||||
|
|
||||||
identity_client.users.update(user.id, **kwargs)
|
identity_client.users.update(user.id, **kwargs)
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
class ShowUser(command.ShowOne):
|
class ShowUser(command.ShowOne):
|
||||||
|
@ -338,7 +338,6 @@ class SetNetwork(command.Command):
|
|||||||
raise exceptions.CommandError(msg)
|
raise exceptions.CommandError(msg)
|
||||||
|
|
||||||
client.update_network(obj, **attrs)
|
client.update_network(obj, **attrs)
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
class ShowNetwork(common.NetworkAndComputeShowOne):
|
class ShowNetwork(common.NetworkAndComputeShowOne):
|
||||||
|
@ -123,7 +123,6 @@ class SetSecurityGroup(common.NetworkAndComputeCommand):
|
|||||||
# if there were no updates. Maintain this behavior and issue
|
# if there were no updates. Maintain this behavior and issue
|
||||||
# the update.
|
# the update.
|
||||||
client.update_security_group(obj, **attrs)
|
client.update_security_group(obj, **attrs)
|
||||||
return
|
|
||||||
|
|
||||||
def take_action_compute(self, client, parsed_args):
|
def take_action_compute(self, client, parsed_args):
|
||||||
data = utils.find_resource(
|
data = utils.find_resource(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user