From 3934fa57630f275a269ae41c955e0a57df30faf3 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Thu, 10 Jan 2013 10:46:00 -0800 Subject: [PATCH] Cleanup pyflakes in nova-manage Also fixes bug 1097830 Change-Id: Id0d73950709b92f39b7ab7a915373ace0b1616ae --- bin/nova-manage | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/nova-manage b/bin/nova-manage index 3eb3b689c571..46645737a942 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -307,7 +307,6 @@ class FixedIpCommands(object): for fixed_ip in fixed_ips: hostname = None host = None - mac_address = None network = all_networks.get(fixed_ip['network_id']) if network: has_ip = True @@ -627,7 +626,7 @@ class ServiceCommands(object): ctxt = context.get_admin_context() now = timeutils.utcnow() services = db.service_get_all(ctxt) - services = availability_zone.set_availability_zones(ctxt, services) + services = availability_zones.set_availability_zones(ctxt, services) if host: services = [s for s in services if s['host'] == host] if service: @@ -741,7 +740,6 @@ class HostCommands(object): print "%-25s\t%-15s" % (_('host'), _('zone')) ctxt = context.get_admin_context() - now = timeutils.utcnow() services = db.service_get_all(ctxt) services = availability_zones.set_availability_zones(ctxt, services) if zone: @@ -776,7 +774,6 @@ class InstanceTypeCommands(object): """Class for managing instance types / flavors.""" def _print_instance_types(self, name, val): - deleted = ('', ', inactive')[val["deleted"] == 1] is_public = ('private', 'public')[val["is_public"] == 1] print ("%s: Memory: %sMB, VCPUS: %s, Root: %sGB, Ephemeral: %sGb, " "FlavorID: %s, Swap: %sMB, RXTX Factor: %s, %s, ExtraSpecs %s") % (