From 5223965b6193757a5d63c7f5ccd466ce7953f6d7 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Tue, 29 Sep 2015 08:38:40 +0000 Subject: Fix ceph after config-external removal Change-Id: I46dc2f02dda8219878eee3755b0891f4c3450682 Partially-Implements: blueprint replace-config-external --- docker/base/set_configs.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docker') diff --git a/docker/base/set_configs.py b/docker/base/set_configs.py index 19415c6fc..941e74ca2 100644 --- a/docker/base/set_configs.py +++ b/docker/base/set_configs.py @@ -86,11 +86,13 @@ def copy_files(data): else: # Source is a directory for src in os.listdir(source_path): - LOG.info('Copying {} to {}'.format(src, dest_path)) + LOG.info('Copying {} to {}'.format( + os.path.join(source_path, src), dest_path)) + if os.path.isdir(src): - shutil.copytree(src, dest_path) + shutil.copytree(os.path.join(source_path, src), dest_path) else: - shutil.copy(src, dest_path) + shutil.copy(os.path.join(source_path, src), dest_path) def set_permissions(data): -- cgit v1.2.3