Better status conditional from dagwieers

pull/18777/head
Toshio Kuratomi 9 years ago committed by Matt Clay
parent 117f640bb9
commit 24ce8887bf

@ -155,7 +155,7 @@ def main():
module.fail_json(msg=str(e), status=status, reason=str(e), url=url) module.fail_json(msg=str(e), status=status, reason=str(e), url=url)
status = r.getcode() status = r.getcode()
if satus >= 200 and status < 300: if 200 <= status < 300:
module.exit_json(changed=True, status=status, reason=r.msg, url=url) module.exit_json(changed=True, status=status, reason=r.msg, url=url)
else: else:
length = r.headers.get('content-length', None) length = r.headers.get('content-length', None)

Loading…
Cancel
Save