remove vmid_min-max from config

This commit is contained in:
deflax 2018-04-20 16:51:55 +03:00
parent b7ccaf04ce
commit 28709fd529
2 changed files with 1 additions and 3 deletions

View file

@ -14,8 +14,6 @@ log-maxsize = 100000
adminuser = masteradmin@pve
apipass = sakdlsadas
vmid_min = 1000
vmid_max = 999999
novnc_url = https://panel.example.com/novnc/vnc_lite.html
ssl_cert = /etc/letsencrypt/live/api.example.com/fullchain.pem
ssl_key = /etc/letsencrypt/live/api.example.com/privkey.pem

View file

@ -170,7 +170,7 @@ def status(json):
slave_name, phy_id, vm_host, vm_owner = grid.query(json)
proxobject = auth(slave_name)
#slave_name = proxobject.cluster.status.get()[0]['name']
ioconfig.logger.info('%s[%s]> status of %s %s (%s)' % (vm_owner, slave_name, unit_type, phy_id, vm_host))
#ioconfig.logger.info('%s[%s]> status of %s %s (%s)' % (vm_owner, slave_name, unit_type, phy_id, vm_host))
if unit_type == 'kvm':
statusquery = proxobject.nodes(slave_name).qemu(phy_id).status.current.get()
result = {'status': str(statusquery['qmpstatus'])}