|
|
@ -390,12 +390,12 @@ class VMware(BaseManager):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
stdout_data, _ = yield from asyncio.wait_for(process.communicate(), timeout=timeout)
|
|
|
|
stdout_data, _ = yield from asyncio.wait_for(process.communicate(), timeout=timeout)
|
|
|
|
except asyncio.TimeoutError:
|
|
|
|
except asyncio.TimeoutError:
|
|
|
|
raise VMwareError("vmrun has timed out after {} seconds!".format(timeout))
|
|
|
|
raise VMwareError("vmrun has timed out after {} seconds!\nTry to run {} in a terminal to see more informations.".format(timeout, command_string))
|
|
|
|
|
|
|
|
|
|
|
|
if process.returncode:
|
|
|
|
if process.returncode:
|
|
|
|
# vmrun print errors on stdout
|
|
|
|
# vmrun print errors on stdout
|
|
|
|
vmrun_error = stdout_data.decode("utf-8", errors="ignore")
|
|
|
|
vmrun_error = stdout_data.decode("utf-8", errors="ignore")
|
|
|
|
raise VMwareError("vmrun has returned an error: {}".format(vmrun_error))
|
|
|
|
raise VMwareError("vmrun has returned an error: {}\nTry to run {} in a terminal to see more informations.".format(vmrun_error, command_string))
|
|
|
|
|
|
|
|
|
|
|
|
return stdout_data.decode("utf-8", errors="ignore").splitlines()
|
|
|
|
return stdout_data.decode("utf-8", errors="ignore").splitlines()
|
|
|
|
|
|
|
|
|
|
|
|