Commit c103d7ae authored by Guido Trotter's avatar Guido Trotter

Unpack the confd reply as an object, from the dict

Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 9f83899a
......@@ -112,7 +112,8 @@ class ConfdClient:
def _UnpackReply(self, payload):
in_payload = confd.UnpackMagic(payload)
(answer, salt) = serializer.LoadSignedJson(in_payload, self._hmac_key)
(dict_answer, salt) = serializer.LoadSignedJson(in_payload, self._hmac_key)
answer = objects.ConfdReply.FromDict(dict_answer)
return answer, salt
def ExpireRequests(self):
......
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