From 6d35aa35244f1873fea98c9a1fbdd0741203e702 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. --- cloud/rackspace/rax_files_objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/rackspace/rax_files_objects.py b/cloud/rackspace/rax_files_objects.py index f2510477674..93e65980ddc 100644 --- a/cloud/rackspace/rax_files_objects.py +++ b/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 = []