Better status conditional from dagwieers
This commit is contained in:
parent
1e18550805
commit
3ec3e77d53
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ def main():
|
|||
module.fail_json(msg=str(e), status=status, reason=str(e), url=url)
|
||||
|
||||
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)
|
||||
else:
|
||||
length = r.headers.get('content-length', None)
|
||||
|
|
Loading…
Reference in a new issue