Commit 8306e0e4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

RAPI client: Encode empty body to JSON



If the body consists of an empty dict, it should also be encoded.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 84a12e40
......@@ -351,7 +351,7 @@ class GanetiRapiClient(object):
curl = self._curl
if content:
if content is not None:
encoded_content = self._json_encoder.encode(content)
else:
encoded_content = ""
......
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