Commit 9ff6c40e by bryan hunt

Accept status code from a list of valid codes.

parent 5d518379
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment