Port #50930 to master

This commit is contained in:
Kenn Leth Hansen 2020-04-30 22:50:40 +03:00 committed by Daniel Wozniak
parent 5d280eee1e
commit 656c9f82e1

View file

@ -180,6 +180,7 @@ def init(
enable_vnc=False,
seed_cmd="seed.apply",
enable_qcow=False,
serial_type="None",
):
"""
This routine is used to create a new virtual machine. This routines takes
@ -236,6 +237,11 @@ def init(
enable_qcow
Clone disk image as a copy-on-write qcow2 image, using downloaded
`image` as backing file.
serial_type
Enable serial console. Set to 'pty' for serial console or 'tcp' for
telnet.
Default is 'None'
"""
__jid_event__.fire_event({"message": "Searching for hosts"}, "progress")
data = query(host, quiet=True)
@ -292,6 +298,7 @@ def init(
"seed_cmd": seed_cmd,
"enable_vnc": enable_vnc,
"enable_qcow": enable_qcow,
"serial_type": serial_type,
},
)
except SaltClientError as client_error: