Skip to content

Commit e17ca09

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix GitHub tarball URL for monasca-thresh"
2 parents 09d03a9 + 556e8f9 commit e17ca09

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

kolla/common/config.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,14 @@
232232
' of disk IO. "docker-squash" tool is required, install'
233233
' it by "pip install docker-squash"')),
234234
cfg.StrOpt('openstack-release', default=OPENSTACK_RELEASE,
235-
help='OpenStack release for building kolla-toolbox'),
236-
cfg.StrOpt('openstack-branch', default='master',
237-
help='Branch for source images'),
235+
help='OpenStack release for building kolla source images and '
236+
'kolla-toolbox image'),
237+
cfg.StrOpt('openstack-branch',
238+
help='Branch for source images (internal; with a dash; '
239+
'please set openstack-release instead)'),
240+
cfg.StrOpt('openstack-branch-slashed',
241+
help='Branch for source images (internal; with a slash; '
242+
'please set openstack-release instead)'),
238243
cfg.BoolOpt('docker-healthchecks', default=True,
239244
help='Add Kolla docker healthcheck scripts in the image'),
240245
cfg.BoolOpt('quiet', short='q', default=False,
@@ -498,7 +503,7 @@
498503
'monasca-thresh': {
499504
'type': 'url',
500505
'location': ('https://github.com/openstack/monasca-thresh/archive/'
501-
'master.tar.gz')},
506+
'${openstack_branch_slashed}.tar.gz')},
502507
'monasca-thresh-additions-monasca-common': {
503508
'type': 'url',
504509
'location': ('$tarballs_base/openstack/monasca-common/'
@@ -1018,7 +1023,9 @@ def parse(conf, args, usage=None, prog=None,
10181023
conf.set_default('base_tag', DEFAULT_BASE_TAGS[conf.base]['tag'])
10191024
prefix = '' if conf.openstack_release == 'master' else 'stable-'
10201025
openstack_branch = '{}{}'.format(prefix, conf.openstack_release)
1026+
openstack_branch_slashed = openstack_branch.replace('-', '/')
10211027
conf.set_default('openstack_branch', openstack_branch)
1028+
conf.set_default('openstack_branch_slashed', openstack_branch_slashed)
10221029

10231030
if not conf.base_image:
10241031
conf.base_image = DEFAULT_BASE_TAGS[conf.base]['name']

0 commit comments

Comments
 (0)