phase3
This commit is contained in:
parent
9c58388eb2
commit
16b6fe5073
5
grid.py
5
grid.py
|
@ -73,8 +73,9 @@ def sync(cached=True):
|
|||
#static parameters that CAN go to to cache:
|
||||
vm_id = vm['vmid']
|
||||
vm_name = vm['name']
|
||||
vm_owner = clientsdb.vmowner(vm_id, vm_name, cached) #read clientsdb cache
|
||||
static_vm = { "vmid":str(vm_id), "hostname":vm_name, 'type':vm['vmtype'], 'owner':vm_owner }
|
||||
#vm_owner = clientsdb.vmowner(vm_id, vm_name, cached) #read clientsdb cache
|
||||
#static_vm = { "vmid":str(vm_id), "hostname":vm_name, 'type':vm['vmtype'], 'owner':vm_owner }
|
||||
static_vm = { "vmid":str(vm_id), "hostname":vm_name, 'type':vm['vmtype'] }
|
||||
real_slave[str(vm_id)] = static_vm
|
||||
#dynamic parameters that SHOULD NOT go to the cache:
|
||||
dynamic_vm = { "uptime":vm['uptime'] }
|
||||
|
|
Loading…
Reference in a new issue