diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-07-30 13:44:13 -0700 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-07-30 13:44:13 -0700 |
commit | 3ec3e77d535559d341d19067dd1494fc2cd1aa66 (patch) | |
tree | c9d2e5ffc4c29a3c53d1f31e77621df000200f5f | |
parent | 1e1855080526fa4c7c930a66990dbb44a732ce7c (diff) | |
download | ansible-modules-extras-3ec3e77d535559d341d19067dd1494fc2cd1aa66.tar.gz |
Better status conditional from dagwieers
-rw-r--r-- | cloud/vmware/vsphere_copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud/vmware/vsphere_copy.py b/cloud/vmware/vsphere_copy.py index 2e983589..446f62bd 100644 --- a/cloud/vmware/vsphere_copy.py +++ b/cloud/vmware/vsphere_copy.py @@ -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) |