Skip to content
Snippets Groups Projects
Commit 267bc1f4 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Make Rapi backed set node tags correctly


Since the htools representation of a node now allows adding
the node tags, populate this field correctly in the Rapi
backend.

Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent f33c06b8
No related branches found
No related tags found
No related merge requests found
......@@ -166,8 +166,10 @@ parseNode ktg a = do
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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment