From a014bde3f0e428bafa1b8ac0769fc97630df085d Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 3 Apr 2015 09:06:58 -0400 Subject: [PATCH] switched to use python's built in os.separator vs using / --- lib/ansible/modules/files/copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/copy.py b/lib/ansible/modules/files/copy.py index 8b6611a258..035b18a16b 100644 --- a/lib/ansible/modules/files/copy.py +++ b/lib/ansible/modules/files/copy.py @@ -240,7 +240,7 @@ def main(): changed = False # Special handling for recursive copy - create intermediate dirs - if original_basename and dest.endswith("/"): + if original_basename and dest.endswith(os.sep): dest = os.path.join(dest, original_basename) dirname = os.path.dirname(dest) if not os.path.exists(dirname) and os.path.isabs(dirname):