1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Accept status code from a list of valid codes.

This commit is contained in:
bryan hunt 2014-03-24 14:17:36 +00:00
parent 5d51837921
commit 9ff6c40ed0

View file

@ -412,10 +412,6 @@ def main():
uresp['json'] = js
except:
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:
module.fail_json(msg="Status code was not " + str(status_code), content=content, **uresp)
elif return_content: