summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTong Li <litong01@us.ibm.com>2012-07-20 22:48:42 -0400
committerTong Li <litong01@us.ibm.com>2012-07-20 22:49:34 -0400
commit854be4815127fd703cd91f40fa7511c170351bbc (patch)
tree03adb398e8c3817efc19a253fd61b0d0d29531f9 /bin
parentc94cbe223fffa57969d91219538bc3576e9893da (diff)
downloadnova-854be4815127fd703cd91f40fa7511c170351bbc.tar.gz
nova-854be4815127fd703cd91f40fa7511c170351bbc.tar.xz
nova-854be4815127fd703cd91f40fa7511c170351bbc.zip
fixes for nova-manage not returning a full list of fixed IPs
This fix correct the problem reported in bug 930193 nova-manage does not return a full list of fixed IPs. The reason is that the call to fixed_ip['instance_id'] can throw exception when fixed_ip does not have instance_id as its member. The changes in this fix corrects the problem. rebase to resolve the automatic merge issue. Change-Id: Ic15a0a0f43f53b82f9d88a03803c96b44a8ddcb9
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index 24e095b92..da9d375e4 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -304,7 +304,7 @@ class FixedIpCommands(object):
network = all_networks.get(fixed_ip['network_id'])
if network:
has_ip = True
- if fixed_ip['instance_id']:
+ if fixed_ip.get('instance_id'):
instance = instances_by_id.get(fixed_ip['instance_id'])
if instance:
hostname = instance['hostname']