Merge "Trivial: Remove useless return from files in compute."
This commit is contained in:
commit
251939fb36
@ -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):
|
||||
|
@ -132,7 +132,6 @@ class DeleteAggregate(command.Command):
|
||||
parsed_args.aggregate,
|
||||
)
|
||||
compute_client.aggregates.delete(data.id)
|
||||
return
|
||||
|
||||
|
||||
class ListAggregate(lister.Lister):
|
||||
|
@ -65,7 +65,6 @@ class ShowConsoleLog(command.Command):
|
||||
|
||||
data = server.get_console_output(length=length)
|
||||
sys.stdout.write(data)
|
||||
return
|
||||
|
||||
|
||||
class ShowConsoleURL(show.ShowOne):
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
|
@ -187,7 +187,6 @@ class DeleteSecurityGroup(command.Command):
|
||||
parsed_args.group,
|
||||
)
|
||||
compute_client.security_groups.delete(data.id)
|
||||
return
|
||||
|
||||
|
||||
class DeleteSecurityGroupRule(command.Command):
|
||||
@ -209,7 +208,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):
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user