summaryrefslogtreecommitdiffstats
path: root/nova/cmd
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2013-04-03 16:22:12 +1100
committerMichael Still <mikal@stillhq.com>2013-04-15 03:39:44 +1000
commit5cced7a31482d014fe31f815f38fd00e079cc491 (patch)
treecd5598f6ba4a17c8bc432225307c791367dfb7ef /nova/cmd
parent497b42372d820bb9bf2c9dfd482e5abf9ef1f940 (diff)
downloadnova-5cced7a31482d014fe31f815f38fd00e079cc491.tar.gz
nova-5cced7a31482d014fe31f815f38fd00e079cc491.tar.xz
nova-5cced7a31482d014fe31f815f38fd00e079cc491.zip
Allow listing fixed_ips for a given compute host.
nova.db.fixed_ip_get_all_by_instance_host was removed in commit bb867ce3948ddc23cf928ca3dda100a1a977896a, but was still used in nova-manage. This patch works around the removal of the foreign key that led to this method being removed. Resolves bug 1163660. Change-Id: Ieccd37c752e245558827615c098604d11ad3d945
Diffstat (limited to 'nova/cmd')
-rw-r--r--nova/cmd/manage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/cmd/manage.py b/nova/cmd/manage.py
index 2482e0be2..c3b363117 100644
--- a/nova/cmd/manage.py
+++ b/nova/cmd/manage.py
@@ -285,7 +285,8 @@ class FixedIpCommands(object):
if host is None:
fixed_ips = db.fixed_ip_get_all(ctxt)
else:
- fixed_ips = db.fixed_ip_get_all_by_instance_host(ctxt, host)
+ fixed_ips = db.fixed_ip_get_by_host(ctxt, host)
+
except exception.NotFound as ex:
print _("error: %s") % ex
return(2)