diff options
| author | Vladislav Belogrudov <vladislav.belogrudov@oracle.com> | 2015-09-04 17:47:35 +0300 |
|---|---|---|
| committer | Vladislav Belogrudov <vladislav.belogrudov@oracle.com> | 2015-09-07 12:13:59 +0300 |
| commit | 34cbe82e6efed5222a2ab2b29368505ea8f41f00 (patch) | |
| tree | 68c8066e44e24ec5ca910c3bbfcf6b4ea6501de4 | |
| parent | e569d80182256f98febe499f7259bcd8dc54d07d (diff) | |
| download | kolla-34cbe82e6efed5222a2ab2b29368505ea8f41f00.tar.gz kolla-34cbe82e6efed5222a2ab2b29368505ea8f41f00.zip | |
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
| -rwxr-xr-x | kolla/cmd/build.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index 437f19cc4..3f21970f6 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'])) |
