Commit a041ebb5 authored by Iustin Pop's avatar Iustin Pop
Browse files

Read auto_balance via Rapi


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarAdeodato Simo <dato@google.com>
parent 6880526c
......@@ -122,7 +122,9 @@ parseInstance ktn a = do
else readEitherString (head snodes) >>= lookupNode ktn name)
running <- extract "status" a
tags <- extract "tags" a
let inst = Instance.create name mem disk vcpus running tags True pnode snode
auto_balance <- extract "auto_balance" beparams
let inst = Instance.create name mem disk vcpus running tags
auto_balance pnode snode
return (name, inst)
-- | Construct a node from a JSON object.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment