mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
escape description and vnc command
This commit is contained in:
parent
0bdced0865
commit
04d588d688
1 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ class VM(object):
|
|||
proxmox = connect_proxmox()
|
||||
port = str(int(port) - 5900)
|
||||
proxmox.nodes(self.node).qemu(self.id).monitor.post(
|
||||
command="change vnc 127.0.0.1:{}".format(port))
|
||||
command="change\ vnc\ 127.0.0.1:{}".format(port))
|
||||
|
||||
def eject_iso(self):
|
||||
proxmox = connect_proxmox()
|
||||
|
@ -230,7 +230,7 @@ def create_vm(proxmox, user, name, cores, memory, disk, iso):
|
|||
ide2="{},media=cdrom".format(iso),
|
||||
net0='virtio,bridge=vmbr0',
|
||||
pool=user,
|
||||
description='Managed by Proxstar')
|
||||
description='Managed\ by\ Proxstar')
|
||||
retry = 0
|
||||
while retry < 5:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue