From 143b4671cce2a0996018509f6ce38c0902acde09 Mon Sep 17 00:00:00 2001 From: Ray Sun Date: Thu, 2 Aug 2012 21:13:33 +0800 Subject: Fix regression with nova-manage floating list Fixes bug #1032177 If a floating IP is not associated with an instance, nova-manage fails with: local variable 'instance_uuid' referenced before assignment This is a regression introduced by commit fc82c6d. Simply rename the local variable to instance_uuid. Change-Id: Ia6df23c945f0815c65bcfd2f49e8ba3225d03d7f --- bin/nova-manage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nova-manage b/bin/nova-manage index e02d6eeaa..1bd0691f4 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -411,7 +411,7 @@ class FloatingIpCommands(object): print _("No floating IP addresses have been defined.") return for floating_ip in floating_ips: - instance_id = None + instance_uuid = None if floating_ip['fixed_ip_id']: fixed_ip = db.fixed_ip_get(ctxt, floating_ip['fixed_ip_id']) instance_uuid = fixed_ip['instance_uuid'] -- cgit