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:
jichenjc 2016-11-17 20:39:00 +08:00
parent cc87674f82
commit 700137a691
2 changed files with 4 additions and 3 deletions

View File

@ -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()

View File

@ -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()