提交 929d520d 编写于 作者: S Sitong liu

nic_hotplug: fix syntax error

Signed-off-by: NSitong liu <sliu@localhost.localdomain>
上级 80eee5a7
...@@ -232,7 +232,7 @@ def run(test, params, env): ...@@ -232,7 +232,7 @@ def run(test, params, env):
for nic in primary_nic: for nic in primary_nic:
vm.set_link(nic.device_id, up=True) vm.set_link(nic.device_id, up=True)
logging.info("Reboot vm to verify it alive after hotunplug nic(s)") logging.info("Reboot vm to verify it alive after hotunplug nic(s)")
serial = len(vm.virtnet) > 0 and False or True serial = not (len(vm.virtnet) > 0)
session = vm.reboot(serial=serial) session = vm.reboot(serial=serial)
vm.verify_alive() vm.verify_alive()
session.close() session.close()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册