summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorBen Doherty <ben@thinkoomph.com>2016-06-01 09:07:18 -0400
committerBen Doherty <ben@thinkoomph.com>2016-06-01 09:07:18 -0400
commit07ca593c80d4b996cca7e4e2fe0b4f45a4745644 (patch)
treed1e21057366b6de0137511463706d016132a6ef9 /files
parenta38b510aa80a856d6d59986372150a210504b0b1 (diff)
downloadansible-modules-extras-07ca593c80d4b996cca7e4e2fe0b4f45a4745644.tar.gz
expanduser() on dest
Diffstat (limited to 'files')
-rw-r--r--files/archive.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/files/archive.py b/files/archive.py
index 26394b03..96658461 100644
--- a/files/archive.py
+++ b/files/archive.py
@@ -157,7 +157,9 @@ def main():
# Default created file name (for single-file archives) to
# <file>.<compression>
- if not archive and not dest:
+ if dest:
+ dest = os.path.expanduser(dest)
+ elif not archive:
dest = '%s.%s' % (expanded_paths[0], compression)
# Force archives to specify 'dest'