Skip to content
This repository was archived by the owner on Jan 20, 2020. It is now read-only.

Commit e4c27b6

Browse files
committed
CLOUD-4096 remove "dockercloud_action_uri" in the output of inspect
1 parent 7cfd1a6 commit e4c27b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dockercloud/api/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def send_request(method, path, inject_header=True, **kwargs):
6969
# Try to parse the response.
7070
try:
7171
json = response.json()
72-
if response.headers and inject_header:
72+
if response.headers and inject_header and response.headers.get("X-DockerCloud-Action-URI", ""):
7373
json["dockercloud_action_uri"] = response.headers.get("X-DockerCloud-Action-URI", "")
7474
except TypeError:
7575
raise ApiError("JSON Parse Error (%s %s). Response: %s" % (method, url, response.text))

0 commit comments

Comments
 (0)