From d3bb06d5ce3fb9df53fd6e043a3fea9bb1faeae0 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Tue, 7 Jan 2025 10:57:12 +0000 Subject: Fix genconfig Currently tox -e genconfig fails with stevedore issues, because tox is not doing sdist. Closes-Bug: #2051575 Change-Id: Idfc26fe380a546d0fd712a531e5913090b01d808 --- kolla/common/config.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'kolla') 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): -- cgit v1.2.3