From 08619dd37a1bc00423a1f09859f7e5d8ba4f3ced Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Thu, 24 Jun 2010 04:11:58 +0100 Subject: make sure to deexpress before we remove the host since deexpress uses the host --- nova/compute/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova') diff --git a/nova/compute/network.py b/nova/compute/network.py index 15373cb20..acc153677 100644 --- a/nova/compute/network.py +++ b/nova/compute/network.py @@ -160,8 +160,8 @@ class BaseNetwork(datastore.RedisModel): def deallocate_ip(self, ip_str): if not ip_str in self.assigned: raise exception.AddressNotAllocated() - self._rem_host(ip_str) self.deexpress(address=ip_str) + self._rem_host(ip_str) def list_addresses(self): for address in self.hosts: -- cgit