diff options
| author | Antoine Roux <antoine.roux@esrf.fr> | 2016-02-02 11:15:29 +0100 |
|---|---|---|
| committer | Antoine Roux <antoine.roux@esrf.fr> | 2016-02-02 12:15:33 +0000 |
| commit | b5c2bd22a277c94f42bdf9b2a11654488c9190c6 (patch) | |
| tree | cf9b618534696aa095ab3e5261a44c236907a36a /docker | |
| parent | 1057dcd50a8963e5220f7ca5cc7b66183a06340e (diff) | |
| download | kolla-b5c2bd22a277c94f42bdf9b2a11654488c9190c6.tar.gz kolla-b5c2bd22a277c94f42bdf9b2a11654488c9190c6.zip | |
Fix wrong behavior when the source is a directory
TrivialFix
Change-Id: Ie723fb35f15be0a500b428b2b58e6b4c5321df0c
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/base/set_configs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/base/set_configs.py b/docker/base/set_configs.py index d426b3569..d2f1a5643 100644 --- a/docker/base/set_configs.py +++ b/docker/base/set_configs.py @@ -158,7 +158,7 @@ def copy_files(data): LOG.info("Copying %s to %s", os.path.join(source_path, src), dest_path) - if os.path.isdir(src): + if os.path.isdir(os.path.join(source_path, src)): shutil.copytree(os.path.join(source_path, src), dest_path) else: shutil.copy(os.path.join(source_path, src), dest_path) |
