From 5cced7a31482d014fe31f815f38fd00e079cc491 Mon Sep 17 00:00:00 2001 From: Michael Still Date: Wed, 3 Apr 2013 16:22:12 +1100 Subject: 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 --- nova/cmd/manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova/cmd') 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) -- cgit