diff options
author | Ray Sun <xiaoquqi@gmail.com> | 2012-08-02 21:13:33 +0800 |
---|---|---|
committer | Ray Sun <xiaoquqi@gmail.com> | 2012-08-03 06:57:23 +0800 |
commit | 143b4671cce2a0996018509f6ce38c0902acde09 (patch) | |
tree | c1d3cbc2300c1d7a7cbb4c4c29d88f34f5eefc71 | |
parent | eaf6e3ae2eb0d9ec46a6372d06842e033031c061 (diff) | |
download | nova-143b4671cce2a0996018509f6ce38c0902acde09.tar.gz nova-143b4671cce2a0996018509f6ce38c0902acde09.tar.xz nova-143b4671cce2a0996018509f6ce38c0902acde09.zip |
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
-rwxr-xr-x | bin/nova-manage | 2 |
1 files changed, 1 insertions, 1 deletions
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'] |