From 8bba4a75b279d8be5a007ee1ee277d1e790e045d Mon Sep 17 00:00:00 2001 From: deflax Date: Mon, 4 Jul 2016 04:33:16 +0300 Subject: [PATCH] fixing acpi shutdown and vnc timeoute --- plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index cd53e0d..d28d588 100644 --- a/plugin.py +++ b/plugin.py @@ -172,9 +172,9 @@ def vmshutdown(vm_id): ioconfig.logger.info('slave[%s]> acpi shutdown %s %s' % (slave_name, vm_type, vm_id)) if vm_type == 'kvm': - result = proxobject.nodes(slave_name).qemu(vm_id).status.stop.post() + result = proxobject.nodes(slave_name).qemu(vm_id).status.shutdown.post() if vm_type == 'lxc': - result = proxobject.nodes(slave_name).lxc(vm_id).status.stop.post() + result = proxobject.nodes(slave_name).lxc(vm_id).status.shutdown.post() #ioconfig.logger.info('slave[{}]> {}'.format(slave_name, result)) response = { 'status':'SHUTDOWN', 'vmid':vm_id } return response @@ -284,7 +284,7 @@ def vmvnc(vm_id): 'listen_port': listenport } - vnc_options = { 'idle-timeout': 10, + vnc_options = { 'idle-timeout': 20, 'verbose': True }