From 16b6fe50739c9c0a2ff65b36633b63a856a01176 Mon Sep 17 00:00:00 2001 From: deflax Date: Sat, 29 Oct 2016 05:57:57 +0300 Subject: [PATCH] phase3 --- grid.py | 5 +++-- plugin.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/grid.py b/grid.py index ba457c3..122e621 100644 --- a/grid.py +++ b/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'] } diff --git a/plugin.py b/plugin.py index b7a3f0d..4018ce9 100644 --- a/plugin.py +++ b/plugin.py @@ -58,7 +58,7 @@ def vmcreate(req): region_id = grid.query_region(req['region']) if region_id == "-1": - logger.error('grid> no region found') + ioconfig.logger.error('grid> no region found') response = 'NO REGION FOUND' return response