diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-06-24 04:11:58 +0100 |
|---|---|---|
| committer | andy <github@anarkystic.com> | 2010-06-24 04:11:58 +0100 |
| commit | 08619dd37a1bc00423a1f09859f7e5d8ba4f3ced (patch) | |
| tree | 27240be4c53f2776885d654442a729846520d18a /nova | |
| parent | e9e767ac1b4e42d77b6ecc025e48a5505c040aa2 (diff) | |
make sure to deexpress before we remove the host since deexpress uses the host
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/compute/network.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
