Fix QuantumManager update_dhcp calls

The syntax recently changed to add another parameter (context)

Change-Id: I984294064f26bd49facd75ca4bf4634c9ff61bc8
This commit is contained in:
Brad Hall
2011-11-29 06:33:19 +00:00
parent 9812c86c4a
commit 26d92d300c

View File

@@ -261,11 +261,14 @@ class QuantumNovaIPAMTestCase(QuantumNovaTestCase):
def func(arg1, arg2):
pass
def func2(arg1, arg2, arg3):
pass
def func1(arg1):
pass
self.net_man.driver.update_dhcp_hostfile_with_text = func
self.net_man.driver.restart_dhcp = func
self.net_man.driver.restart_dhcp = func2
self.net_man.driver.kill_dhcp = func1
nw_info = self.net_man.allocate_for_instance(ctx,
instance_id=instance_ref['id'], host="",
@@ -320,8 +323,11 @@ class QuantumNovaIPAMTestCase(QuantumNovaTestCase):
def func1(arg1):
pass
def func2(arg1, arg2, arg3):
pass
self.net_man.driver.update_dhcp_hostfile_with_text = func
self.net_man.driver.restart_dhcp = func
self.net_man.driver.restart_dhcp = func2
self.net_man.driver.kill_dhcp = func1
nw_info = self.net_man.allocate_for_instance(ctx,
instance_id=instance_ref['id'], host="",