unattended_install: Fix message wording

The messages assume images will be copied from an
NFS mount in case of unattended install failure,
when said mount may not even exist. Let's fix the
message and notify the image copy only if the grid
owners actually configured it to do so.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 2abd4a5c
......@@ -984,6 +984,7 @@ def run_unattended_install(test, params, env):
error.base_context("Copy image from NFS after installation failure")
image_copy_on_error = params.get("image_copy_on_error", "no")
if image_copy_on_error == "yes":
logging.info("Running image_copy to copy pristine image from NFS.")
try:
error.context("Quit qemu-kvm before copying guest image")
vm.monitor.quit()
......@@ -1126,8 +1127,7 @@ def run_unattended_install(test, params, env):
else:
time.sleep(1)
else:
logging.warn("Timeout elapsed while waiting for install to finish."
"Will run image_copy to copy image from NFS.")
logging.warn("Timeout elapsed while waiting for install to finish ")
copy_images()
raise error.TestFail("Timeout elapsed while waiting for install to "
"finish")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册