Fix wrong behavior when the source is a directory

TrivialFix

Change-Id: Ie723fb35f15be0a500b428b2b58e6b4c5321df0c
This commit is contained in:
Antoine Roux 2016-02-02 11:15:29 +01:00
parent 1057dcd50a
commit b5c2bd22a2

View File

@ -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)