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:
JinLi 2017-09-25 15:55:24 -07:00
parent 0e99426b9e
commit 27f386ab68
1 changed files with 1 additions and 1 deletions

View File

@ -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)