diff --git a/cloud/vmware/vsphere_copy.py b/cloud/vmware/vsphere_copy.py index 2e983589749..446f62bd5c5 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)