[Keystone] Fix status code logic
This patch set fixes an issue with where the keystone chart's domain-manage job/pod always restart once due to a calculation logic error. Change-Id: I801d04559a526d3a7339cd5102f2e738af9f72e0 Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
parent
4844a63543
commit
45e22e45a5
@ -46,7 +46,8 @@ def main(args):
|
||||
|
||||
|
||||
print("Response code on action [%s]: %s" % (action, response.status_code))
|
||||
if (int(response.status_code) / 100) != 2:
|
||||
# Put and Patch can return 200 or 201. If it is not a 2XX code, error out.
|
||||
if (response.status_code // 100) != 2:
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user