From 24ce8887bf693112c50514ab1eeaa589b327298c Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 30 Jul 2015 13:44:13 -0700 Subject: [PATCH] Better status conditional from dagwieers --- lib/ansible/modules/extras/cloud/vmware/vsphere_copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/vmware/vsphere_copy.py b/lib/ansible/modules/extras/cloud/vmware/vsphere_copy.py index f2ec1187168..db51ac78836 100644 --- a/lib/ansible/modules/extras/cloud/vmware/vsphere_copy.py +++ b/lib/ansible/modules/extras/cloud/vmware/vsphere_copy.py @@ -155,7 +155,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)