diff --git a/plugin.py b/plugin.py index 86bcef1..047ab95 100644 --- a/plugin.py +++ b/plugin.py @@ -251,12 +251,10 @@ def vmrrd(vm_id): rmem = proxobject.nodes(slave_name).lxc(vm_id).rrd.get(timeframe='day', cf='AVERAGE', ds='mem,maxmem') rnet = proxobject.nodes(slave_name).lxc(vm_id).rrd.get(timeframe='day', cf='AVERAGE', ds='netin,netout') rhdd = proxobject.nodes(slave_name).lxc(vm_id).rrd.get(timeframe='day', cf='AVERAGE', ds='diskread,diskwrite') - - - - response = { 'status':'RRD', 'vmid':vm_id, 'cpu':rcpu, 'mem':rmem, 'net':rnet, 'hdd',rhdd } + response = { 'status':'RRD', 'vmid':vm_id, 'cpu':rcpu, 'mem':rmem, 'net':rnet, 'hdd':rhdd } return response + def vmvnc(vm_id): """ invoke vnc ticket """ slave_id, vm_type = grid.query_vm(vm_id)