Skip to content

Commit bed7d65

Browse files
committed
Fix _post_json behavior
Signed-off-by: Joffrey F <[email protected]>
1 parent b4c94c0 commit bed7d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/api/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _post_json(self, url, data, **kwargs):
231231
for k, v in six.iteritems(data):
232232
if v is not None:
233233
data2[k] = v
234-
else:
234+
elif data is not None:
235235
data2 = data
236236

237237
if 'headers' not in kwargs:

0 commit comments

Comments
 (0)