Handle kwargs in deallocate_fixed_ip for FlatDHCP.

Fixes TypeError's that occur when deallocate_fixed_ip gets called
using FlatDHCP.

Fixes LP Bug #950029.

Change-Id: I7357277ce56d7ad4c9e7a716cbd6f25952aa1b8d
This commit is contained in:
Dan Prince
2012-03-08 11:04:13 -05:00
parent 0193d1253c
commit 55c7ac12c0

View File

@@ -229,7 +229,7 @@ class RPCAllocateFixedIP(object):
network = self._get_network_by_id(context, network_id)
return self.allocate_fixed_ip(context, instance_id, network, **kwargs)
def deallocate_fixed_ip(self, context, address, host):
def deallocate_fixed_ip(self, context, address, host, **kwargs):
"""Call the superclass deallocate_fixed_ip if i'm the correct host
otherwise cast to the correct host"""
fixed_ip = self.db.fixed_ip_get_by_address(context, address)