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

Commit

Permalink
CLOUD-4096 remove "dockercloud_action_uri" in the output of inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
tifayuki committed Jan 11, 2017
1 parent 7cfd1a6 commit e4c27b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockercloud/api/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def send_request(method, path, inject_header=True, **kwargs):
# Try to parse the response.
try:
json = response.json()
if response.headers and inject_header:
if response.headers and inject_header and response.headers.get("X-DockerCloud-Action-URI", ""):
json["dockercloud_action_uri"] = response.headers.get("X-DockerCloud-Action-URI", "")
except TypeError:
raise ApiError("JSON Parse Error (%s %s). Response: %s" % (method, url, response.text))
Expand Down

0 comments on commit e4c27b6

Please sign in to comment.