From de8c453ac6bfc600afbc644f876782a95f46ad3f Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Thu, 26 Mar 2015 16:45:27 +0200 Subject: [PATCH] rackspace: pass full path to the isdir. --- lib/ansible/modules/cloud/rackspace/rax_files_objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/rackspace/rax_files_objects.py b/lib/ansible/modules/cloud/rackspace/rax_files_objects.py index 0274a79004d..6da7b1882f0 100644 --- a/lib/ansible/modules/cloud/rackspace/rax_files_objects.py +++ b/lib/ansible/modules/cloud/rackspace/rax_files_objects.py @@ -271,7 +271,7 @@ def upload(module, cf, container, src, dest, meta, expires): if path != src: prefix = path.split(src)[-1].lstrip('/') filenames = [os.path.join(prefix, name) for name in filenames - if not os.path.isdir(name)] + if not os.path.isdir(os.path.join(path, name))] objs += filenames _objs = []