Change status code to 200
In do_post, "status_code != 201" is checked for twice, one of them should be "status_code != 200" Change-Id: Ia344225f1d5a013183d6af2c7876f4acab401546 Closes-Bug: #1719476
This commit is contained in:
parent
0e99426b9e
commit
27f386ab68
|
@ -54,7 +54,7 @@ class Client(object):
|
|||
|
||||
def do_post(self, url, values):
|
||||
resp = post(url, json=values)
|
||||
if resp.status_code != 201 or resp.status_code != 201:
|
||||
if resp.status_code != 200 or resp.status_code != 201:
|
||||
raise exc.GluonClientException('Bad return status %d'
|
||||
% resp.status_code,
|
||||
status_code=resp.status_code)
|
||||
|
|
Loading…
Reference in New Issue