mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Port #50930 to master
This commit is contained in:
parent
5d280eee1e
commit
656c9f82e1
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue