未验证 提交 72980ca3 编写于 作者: S Satheesh Rajendran 提交者: GitHub

Merge pull request #1344 from sitoliu/serial_

nic_hotplug: fix syntax error
...@@ -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.
先完成此消息的编辑!
想要评论请 注册