Skip to content
Snippets Groups Projects
Commit c103d7ae authored by Guido Trotter's avatar Guido Trotter
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
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