aboutsummaryrefslogtreecommitdiff
path: root/kolla/common/config.py
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2025-01-07 10:57:12 +0000
committerMichal Nasiadka <mnasiadka@gmail.com>2025-01-24 06:48:38 +0000
commitd3bb06d5ce3fb9df53fd6e043a3fea9bb1faeae0 (patch)
tree6942a39954aefc10602bbe2037e09936c6eb7797 /kolla/common/config.py
parentaa3e06cd33ef9a469d51d5da41e29d304e42fcfb (diff)
downloadkolla-d3bb06d5ce3fb9df53fd6e043a3fea9bb1faeae0.tar.gz
kolla-d3bb06d5ce3fb9df53fd6e043a3fea9bb1faeae0.zip
Fix genconfig
Currently tox -e genconfig fails with stevedore issues, because tox is not doing sdist. Closes-Bug: #2051575 Change-Id: Idfc26fe380a546d0fd712a531e5913090b01d808
Diffstat (limited to 'kolla/common/config.py')
-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):