aboutsummaryrefslogtreecommitdiff
path: root/kolla
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2025-01-24 15:32:07 +0000
committerGerrit Code Review <review@openstack.org>2025-01-24 15:32:07 +0000
commit1db94519c3fed7dc085f337eb06f74fd259d9792 (patch)
treea9c5b7697c3e77f35b10a23dac350cc8b1b62def /kolla
parente70c58e35d0c6c1dbeca09c07190347bd5db461a (diff)
parentd3bb06d5ce3fb9df53fd6e043a3fea9bb1faeae0 (diff)
downloadkolla-1db94519c3fed7dc085f337eb06f74fd259d9792.tar.gz
kolla-1db94519c3fed7dc085f337eb06f74fd259d9792.zip
Merge "Fix genconfig"
Diffstat (limited to 'kolla')
-rw-r--r--kolla/common/config.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 7ac3e8617..989adcc28 100644
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -302,20 +302,29 @@ _BASE_OPTS = [
def get_source_opts(type_=None, location=None, reference=None, enabled=True,
version=None, sha256=None):
- return [cfg.StrOpt('type', choices=['local', 'git', 'url'],
+ return [cfg.StrOpt('type',
+ choices=['local', 'git', 'url'],
default=type_,
help='Source location type'),
- cfg.StrOpt('location', default=location,
+ cfg.StrOpt('location',
+ default=location,
help='The location for source install'),
- cfg.StrOpt('reference', default=reference,
+ cfg.StrOpt('reference',
+ default=reference,
help=('Git reference to pull, commit sha, tag '
'or branch name')),
- cfg.BoolOpt('enabled', default=enabled,
+ cfg.BoolOpt('enabled',
+ default=enabled,
help=('Whether the source is enabled')),
- cfg.StrOpt('version', default=version,
+ cfg.StrOpt('version',
+ default=version,
help=('Package version to download for GitHub '
'sources')),
- cfg.DictOpt('sha256', default=sha256)]
+ cfg.DictOpt('sha256',
+ default=sha256,
+ help=('Dictionary of sha256 sums for GitHub '
+ 'sources')),
+ ]
def get_user_opts(uid, gid, group):