From a4a91a2df9314b566527c2ce032d4d15477c03ff Mon Sep 17 00:00:00 2001 From: Scott Schneider Date: Tue, 24 Feb 2015 15:49:13 -0800 Subject: [PATCH] Predefine capacity:percent and queue:total --- lib/vmpooler/api.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/vmpooler/api.rb b/lib/vmpooler/api.rb index 6739fc2..f183236 100644 --- a/lib/vmpooler/api.rb +++ b/lib/vmpooler/api.rb @@ -163,7 +163,8 @@ module Vmpooler }, capacity: { current: 0, - total: 0 + total: 0, + percent: 0 }, clone: { duration: { @@ -181,7 +182,8 @@ module Vmpooler booting: 0, ready: 0, running: 0, - completed: 0 + completed: 0, + total: 0 } }