fix vmvnc url prefix

This commit is contained in:
deflax 2016-07-03 01:43:39 +03:00
parent 7150f2f125
commit 9aeb412ca0

View file

@ -291,7 +291,7 @@ def vmvnc(vm_id):
novnc.spawn(vnc_target, vnc_options) novnc.spawn(vnc_target, vnc_options)
external_url = ioconfig.parser.get('general', 'novnc_url') external_url = ioconfig.parser.get('general', 'novnc_url')
prefix = external_url + "/?host=" + myip + "&port=" + listenport + "&encrypt=0&true_color=1&password=" prefix = external_url + "?host=" + myip + "&port=" + listenport + "&encrypt=0&true_color=1&password="
vnc_url = prefix + ticket['ticket'] vnc_url = prefix + ticket['ticket']
ioconfig.logger.info('slave[{}]> vnc port {} ready'.format(slave_name, listenport)) ioconfig.logger.info('slave[{}]> vnc port {} ready'.format(slave_name, listenport))