Wrong usage of param
need to adjust the param usage (instance and userid param) in _reconfigure_networking function Change-Id: I11e72ca3ae8abab6b1dcc7d69794641f61ba825d
This commit is contained in:
parent
cc87674f82
commit
700137a691
|
@ -1463,8 +1463,9 @@ class ZVMDriverTestCases(ZVMTestCase):
|
|||
instance.ZVMInstance.delete_xcat_node()
|
||||
instance.ZVMInstance.copy_xcat_node(farg)
|
||||
instance.ZVMInstance.delete_xcat_node()
|
||||
self.driver._reconfigure_networking(farg, network_info, farg,
|
||||
self._fake_inst)
|
||||
self.driver._reconfigure_networking(farg, network_info,
|
||||
self._fake_inst,
|
||||
userid='os000001')
|
||||
instance.ZVMInstance.power_on()
|
||||
self.mox.ReplayAll()
|
||||
|
||||
|
|
|
@ -1683,7 +1683,7 @@ class ZVMDriver(driver.ComputeDriver):
|
|||
|
||||
# re-configure the networking
|
||||
self._reconfigure_networking(new_inst._name, network_info,
|
||||
old_userid, instance)
|
||||
instance, userid=old_userid)
|
||||
if power_on:
|
||||
new_inst.power_on()
|
||||
|
||||
|
|
Loading…
Reference in New Issue