Fix QuantumManager update_dhcp calls
The syntax recently changed to add another parameter (context) Change-Id: I984294064f26bd49facd75ca4bf4634c9ff61bc8
This commit is contained in:
@@ -261,11 +261,14 @@ class QuantumNovaIPAMTestCase(QuantumNovaTestCase):
|
|||||||
def func(arg1, arg2):
|
def func(arg1, arg2):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def func2(arg1, arg2, arg3):
|
||||||
|
pass
|
||||||
|
|
||||||
def func1(arg1):
|
def func1(arg1):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
self.net_man.driver.update_dhcp_hostfile_with_text = func
|
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
|
self.net_man.driver.kill_dhcp = func1
|
||||||
nw_info = self.net_man.allocate_for_instance(ctx,
|
nw_info = self.net_man.allocate_for_instance(ctx,
|
||||||
instance_id=instance_ref['id'], host="",
|
instance_id=instance_ref['id'], host="",
|
||||||
@@ -320,8 +323,11 @@ class QuantumNovaIPAMTestCase(QuantumNovaTestCase):
|
|||||||
def func1(arg1):
|
def func1(arg1):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def func2(arg1, arg2, arg3):
|
||||||
|
pass
|
||||||
|
|
||||||
self.net_man.driver.update_dhcp_hostfile_with_text = func
|
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
|
self.net_man.driver.kill_dhcp = func1
|
||||||
nw_info = self.net_man.allocate_for_instance(ctx,
|
nw_info = self.net_man.allocate_for_instance(ctx,
|
||||||
instance_id=instance_ref['id'], host="",
|
instance_id=instance_ref['id'], host="",
|
||||||
|
|||||||
Reference in New Issue
Block a user