Permalink
Browse files

nova-manage: Fix 'fixed list'

Fix  'nova-manage fixed list'

Fixes bug 938702

Change-Id: I65a0a57ac8e16b605eeee963146d4dba582dc077
  • Loading branch information...
1 parent 00f8caa commit 74396d58810e9851a6d33aef3dc3b2185154abcb Adam Gandelman committed Feb 22, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 bin/nova-manage
View
@@ -650,12 +650,14 @@ class FixedIpCommands(object):
hostname = None
host = None
mac_address = None
- if fixed_ip['instance']:
+ network = db.network_get(context.get_admin_context(),
+ fixed_ip['network_id'])
+ if fixed_ip['instance_id']:
instance = instances_by_id[fixed_ip['instance_id']]
hostname = instance['hostname']
host = instance['host']
print "%-18s\t%-15s\t%-15s\t%s" % (
- fixed_ip['network']['cidr'],
+ network['cidr'],
fixed_ip['address'],
hostname, host)

0 comments on commit 74396d5

Please sign in to comment.