Skip to content

Commit 04d588d

Browse files
committed
escape description and vnc command
1 parent 0bdced0 commit 04d588d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proxstar/vm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def start_vnc(self, port):
182182
proxmox = connect_proxmox()
183183
port = str(int(port) - 5900)
184184
proxmox.nodes(self.node).qemu(self.id).monitor.post(
185-
command="change vnc 127.0.0.1:{}".format(port))
185+
command="change\ vnc\ 127.0.0.1:{}".format(port))
186186

187187
def eject_iso(self):
188188
proxmox = connect_proxmox()
@@ -230,7 +230,7 @@ def create_vm(proxmox, user, name, cores, memory, disk, iso):
230230
ide2="{},media=cdrom".format(iso),
231231
net0='virtio,bridge=vmbr0',
232232
pool=user,
233-
description='Managed by Proxstar')
233+
description='Managed\ by\ Proxstar')
234234
retry = 0
235235
while retry < 5:
236236
try:

0 commit comments

Comments
 (0)