Skip to content

Commit

Permalink
Check response when creating image stream (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
twaugh committed Nov 13, 2015
1 parent 71b2914 commit 278b54d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions osbs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ def create_image_stream(self, stream_json, namespace=DEFAULT_NAMESPACE):
url = self._build_url("namespaces/%s/imagestreams/" % namespace)
response = self._post(url, data=stream_json,
headers={"Content-Type": "application/json"})
check_response(response)
return response

def import_image(self, name, namespace=DEFAULT_NAMESPACE):
Expand Down

0 comments on commit 278b54d

Please sign in to comment.