Skip to content

Commit

Permalink
Fix regression with nova-manage floating list
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xiaoquqi committed Aug 2, 2012
1 parent eaf6e3a commit 143b467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/nova-manage
Expand Up @@ -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']
Expand Down

0 comments on commit 143b467

Please sign in to comment.