From ecbf7705d12ea63025bbd10d47b80c30e4caff52 Mon Sep 17 00:00:00 2001 From: Emanuele Rocca <ema@linux.it> Date: Wed, 22 May 2013 18:24:08 +0200 Subject: [PATCH] Cleanup unused local variables This patch cleans up a few unused local variables, found with pyflakes. Change-Id: Id65acc5d47380c7d6bfbbfe075dc23e1de30813c --- novaclient/utils.py | 1 - novaclient/v1_1/shell.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/novaclient/utils.py b/novaclient/utils.py index b1df1472e..f8f4b575d 100644 --- a/novaclient/utils.py +++ b/novaclient/utils.py @@ -82,7 +82,6 @@ def get_resource_manager_extra_kwargs(f, args, allow_conflicts=False): hooks = getattr(f, "resource_manager_kwargs_hooks", []) extra_kwargs = {} for hook in hooks: - hook_name = hook.__name__ hook_kwargs = hook(args) conflicting_keys = set(hook_kwargs.keys()) & set(extra_kwargs.keys()) diff --git a/novaclient/v1_1/shell.py b/novaclient/v1_1/shell.py index 227d5ef3a..460ef926e 100644 --- a/novaclient/v1_1/shell.py +++ b/novaclient/v1_1/shell.py @@ -1063,7 +1063,7 @@ def do_rebuild(cs, args): _password = None kwargs = utils.get_resource_manager_extra_kwargs(do_rebuild, args) - s = server.rebuild(image, _password, **kwargs) + server.rebuild(image, _password, **kwargs) _print_server(cs, args) if args.poll: @@ -1671,7 +1671,7 @@ def do_get_password(cs, args): def do_clear_password(cs, args): """Clear password for a server.""" server = _find_server(cs, args.server) - data = server.clear_password() + server.clear_password() def _print_floating_ip_list(floating_ips):