Accept status code from a list of valid codes.
This commit is contained in:
parent
5561fbc427
commit
eb9ac9308c
1 changed files with 0 additions and 4 deletions
|
@ -412,10 +412,6 @@ def main():
|
||||||
uresp['json'] = js
|
uresp['json'] = js
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
sys.stderr.write("status ----> %s \n" % resp['status'])
|
|
||||||
sys.stderr.write("status_code ----> %s \n" % status_code)
|
|
||||||
|
|
||||||
if str(resp['status']) not in status_code:
|
if str(resp['status']) not in status_code:
|
||||||
module.fail_json(msg="Status code was not " + str(status_code), content=content, **uresp)
|
module.fail_json(msg="Status code was not " + str(status_code), content=content, **uresp)
|
||||||
elif return_content:
|
elif return_content:
|
||||||
|
|
Loading…
Reference in a new issue