Skip to content

Commit

Permalink
nova-manage: Fix 'fixed list'
Browse files Browse the repository at this point in the history
Fix  'nova-manage fixed list'

Fixes bug 938702

Change-Id: I65a0a57ac8e16b605eeee963146d4dba582dc077
  • Loading branch information
Adam Gandelman committed Feb 22, 2012
1 parent 00f8caa commit 74396d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/nova-manage
Expand Up @@ -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)

Expand Down

0 comments on commit 74396d5

Please sign in to comment.