summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornitzmahone <mdavis@ansible.com>2016-08-11 12:28:17 -0700
committernitzmahone <mdavis@ansible.com>2016-08-11 12:28:17 -0700
commit936f6997595787ad0f91a08381b7c499403117a8 (patch)
treeae67d1aba26922faa06843c0e8e0b302fdcdb80b
parent24270ed9e7109b14bffc2210ec2cd733f20d6528 (diff)
downloadansible-modules-core-936f6997595787ad0f91a08381b7c499403117a8.tar.gz
Revert "Fix #4202: Can't unarchive remote files (#4244)"
This reverts commit 24270ed9e7109b14bffc2210ec2cd733f20d6528.
-rw-r--r--files/unarchive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/unarchive.py b/files/unarchive.py
index b3d4498f..3e11d837 100644
--- a/files/unarchive.py
+++ b/files/unarchive.py
@@ -699,7 +699,7 @@ def main():
file_args = module.load_file_common_arguments(module.params)
# did tar file arrive?
if not os.path.exists(src):
- if not remote_src and copy:
+ if copy:
module.fail_json(msg="Source '%s' failed to transfer" % src)
# If copy=false, and src= contains ://, try and download the file to a temp directory.
elif '://' in src: