summaryrefslogtreecommitdiffstats
path: root/apex/builders/overcloud_builder.py
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-12-08 18:35:19 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-12-08 18:35:19 +0000
commit387dab2bf2eb60ec6861ea398b5c8bfb4dad52d7 (patch)
tree1ef49a49f422356ac9985b383c2289d0cab1e086 /apex/builders/overcloud_builder.py
parent8154d4c215974c9c51b901cc655faace6eca2f98 (diff)
parentc4ac31069c875b7f0922963194954aff4a5bb644 (diff)
Merge "Fix using ODL versions other than oxygen" into stable/gambia
Diffstat (limited to 'apex/builders/overcloud_builder.py')
-rw-r--r--apex/builders/overcloud_builder.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/apex/builders/overcloud_builder.py b/apex/builders/overcloud_builder.py
index a74ec252..eab8fb66 100644
--- a/apex/builders/overcloud_builder.py
+++ b/apex/builders/overcloud_builder.py
@@ -25,7 +25,12 @@ def inject_opendaylight(odl_version, image, tmp_dir, uc_ip,
assert odl_version in con.VALID_ODL_VERSIONS
# add repo
if odl_version == 'master':
+ # last version in the constants is "master" so select 2nd to last
+ # odl package version has no "master" version
odl_pkg_version = con.VALID_ODL_VERSIONS[-2]
+ # branch will be used to pull puppet-opendaylight. Since puppet-odl
+ # does not pull branch until later, we need to use master version of
+ # that if master ODL version is specified
branch = odl_version
else:
odl_pkg_version = odl_version