From 34cbe82e6efed5222a2ab2b29368505ea8f41f00 Mon Sep 17 00:00:00 2001 From: Vladislav Belogrudov Date: Fri, 4 Sep 2015 17:47:35 +0300 Subject: [PATCH] Correct name of source archive if reference contains '/' If we have reference like stable/kilo name of source archive will contain only last part of reference. We should replace '/' with '-' to have full name. This is useful for correct identification of source code afterwards. Change-Id: I1ff1015e3f7926110d0fcb59504e58a5e80a75f9 Closes-Bug: #1492279 --- kolla/cmd/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index 437f19cc4f..3f21970f67 100755 --- a/kolla/cmd/build.py +++ b/kolla/cmd/build.py @@ -106,7 +106,8 @@ class WorkerThread(Thread): return elif source.get('type') == 'git': - clone_dir = dest_archive + '-' + source['reference'] + clone_dir = '{}-{}'.format(dest_archive, + source['reference'].replace('/', '-')) try: LOG.debug("{}:Cloning from {}".format(image['name'], source['source']))