Trivial: Remove useless return from files in compute.

Change-Id: I9dc6749256fcd53d292d7f658912c032e9ce9df5
This commit is contained in:
Tang Chen 2015-12-17 09:34:12 +08:00
parent f65f82e435
commit 494659fbe4
10 changed files with 0 additions and 15 deletions

View File

@ -91,7 +91,6 @@ class DeleteAgent(command.Command):
self.log.debug("take_action(%s)", parsed_args)
compute_client = self.app.client_manager.compute
compute_client.agents.delete(parsed_args.id)
return
class ListAgent(lister.Lister):

View File

@ -132,7 +132,6 @@ class DeleteAggregate(command.Command):
parsed_args.aggregate,
)
compute_client.aggregates.delete(data.id)
return
class ListAggregate(lister.Lister):

View File

@ -65,7 +65,6 @@ class ShowConsoleLog(command.Command):
data = server.get_console_output(length=length)
sys.stdout.write(data)
return
class ShowConsoleURL(show.ShowOne):

View File

@ -52,7 +52,6 @@ class AddFixedIP(command.Command):
compute_client.servers, parsed_args.server)
server.add_fixed_ip(network.id)
return
class RemoveFixedIP(command.Command):
@ -82,4 +81,3 @@ class RemoveFixedIP(command.Command):
compute_client.servers, parsed_args.server)
server.remove_fixed_ip(parsed_args.ip_address)
return

View File

@ -145,7 +145,6 @@ class DeleteFlavor(command.Command):
flavor = utils.find_resource(compute_client.flavors,
parsed_args.flavor)
compute_client.flavors.delete(flavor.id)
return
class ListFlavor(lister.Lister):

View File

@ -52,7 +52,6 @@ class AddFloatingIP(command.Command):
compute_client.servers, parsed_args.server)
server.add_floating_ip(parsed_args.ip_address)
return
class CreateFloatingIP(show.ShowOne):
@ -103,7 +102,6 @@ class DeleteFloatingIP(command.Command):
)
compute_client.floating_ips.delete(floating_ip)
return
class ListFloatingIP(lister.Lister):
@ -153,4 +151,3 @@ class RemoveFloatingIP(command.Command):
compute_client.servers, parsed_args.server)
server.remove_floating_ip(parsed_args.ip_address)
return

View File

@ -97,7 +97,6 @@ class DeleteKeypair(command.Command):
def take_action(self, parsed_args):
compute_client = self.app.client_manager.compute
compute_client.keypairs.delete(parsed_args.name)
return
class ListKeypair(lister.Lister):

View File

@ -174,7 +174,6 @@ class DeleteSecurityGroup(command.Command):
parsed_args.group,
)
compute_client.security_groups.delete(data.id)
return
class DeleteSecurityGroupRule(command.Command):
@ -196,7 +195,6 @@ class DeleteSecurityGroupRule(command.Command):
compute_client = self.app.client_manager.compute
compute_client.security_group_rules.delete(parsed_args.rule)
return
class ListSecurityGroup(lister.Lister):

View File

@ -204,7 +204,6 @@ class AddServerSecurityGroup(command.Command):
)
server.add_security_group(security_group.name)
return
class AddServerVolume(command.Command):
@ -665,7 +664,6 @@ class DeleteServer(command.Command):
server_obj.id)
sys.stdout.write(_('\nError deleting server'))
raise SystemExit
return
class ListServer(lister.Lister):

View File

@ -41,7 +41,6 @@ class DeleteService(command.Command):
compute_client = self.app.client_manager.compute
compute_client.services.delete(parsed_args.service)
return
class ListService(lister.Lister):