Skip to content

Commit

Permalink
Accept 201 and 204 status codes
Browse files Browse the repository at this point in the history
because REST
201: resource created
204: no content (e.g. when deleting resources)

Closes-Bug: #1785238
Change-Id: Ieab2437f482f8165adca4818464911277545119f
  • Loading branch information
kbr- committed Aug 3, 2018
1 parent 6a594c5 commit d2c5301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-lib/vnc_api/vnc_api.py
Expand Up @@ -1055,7 +1055,7 @@ def _request(self, op, url, data=None, retry_on_error=True,
retry_count -= 1
continue

if status in [200, 202]:
if status in [200, 201, 202, 204]:
return content

# Exception Response, see if it can be resolved
Expand Down

0 comments on commit d2c5301

Please sign in to comment.