Since the htools representation of a node now allows adding
the node tags, populate this field correctly in the Rapi
backend.
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
dtotal <- extract "dtotal"
dfree <- extract "dfree"
ctotal <- extract "ctotal"
- return $ Node.create name mtotal mnode mfree
- dtotal dfree ctotal False spindles guuid'
+ tags <- extract "tags"
+ return . flip Node.setNodeTags tags $
+ Node.create name mtotal mnode mfree dtotal dfree ctotal False
+ spindles guuid'
return (name, node)
-- | Construct a group from a JSON object.