mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 08:25:33 +00:00
Improve vmware error message for easier copy paste
This commit is contained in:
parent
a776b36e98
commit
60a145afbb
@ -27,6 +27,7 @@ import asyncio
|
|||||||
import subprocess
|
import subprocess
|
||||||
import logging
|
import logging
|
||||||
import codecs
|
import codecs
|
||||||
|
import shlex
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from gns3server.utils.interfaces import interfaces
|
from gns3server.utils.interfaces import interfaces
|
||||||
@ -379,7 +380,7 @@ class VMware(BaseManager):
|
|||||||
|
|
||||||
command = [vmrun_path, "-T", self.host_type, subcommand]
|
command = [vmrun_path, "-T", self.host_type, subcommand]
|
||||||
command.extend(args)
|
command.extend(args)
|
||||||
command_string = " ".join(command)
|
command_string = " ".join([shlex.quote(c) for c in command])
|
||||||
log.log(log_level, "Executing vmrun with command: {}".format(command_string))
|
log.log(log_level, "Executing vmrun with command: {}".format(command_string))
|
||||||
try:
|
try:
|
||||||
process = yield from asyncio.create_subprocess_exec(*command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
|
process = yield from asyncio.create_subprocess_exec(*command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user