Skip to content

Commit 1db9451

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix genconfig"
2 parents e70c58e + d3bb06d commit 1db9451

File tree

4 files changed

+34
-8
lines changed

4 files changed

+34
-8
lines changed

.zuul.d/project.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@
88
- publish-openstack-docs-pti
99
- release-notes-jobs-python3
1010
- periodic-stable-jobs
11+
check:
12+
jobs:
13+
- kolla-tox-genconfig
14+
gate:
15+
jobs:
16+
- kolla-tox-genconfig

.zuul.d/tox.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- job:
3+
name: kolla-tox-genconfig
4+
parent: openstack-tox
5+
timeout: 2400
6+
description: |
7+
8+
Run genconfig
9+
10+
Uses tox with the ``genconfig`` environment.
11+
vars:
12+
tox_envlist: genconfig

kolla/common/config.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,20 +302,29 @@
302302

303303
def get_source_opts(type_=None, location=None, reference=None, enabled=True,
304304
version=None, sha256=None):
305-
return [cfg.StrOpt('type', choices=['local', 'git', 'url'],
305+
return [cfg.StrOpt('type',
306+
choices=['local', 'git', 'url'],
306307
default=type_,
307308
help='Source location type'),
308-
cfg.StrOpt('location', default=location,
309+
cfg.StrOpt('location',
310+
default=location,
309311
help='The location for source install'),
310-
cfg.StrOpt('reference', default=reference,
312+
cfg.StrOpt('reference',
313+
default=reference,
311314
help=('Git reference to pull, commit sha, tag '
312315
'or branch name')),
313-
cfg.BoolOpt('enabled', default=enabled,
316+
cfg.BoolOpt('enabled',
317+
default=enabled,
314318
help=('Whether the source is enabled')),
315-
cfg.StrOpt('version', default=version,
319+
cfg.StrOpt('version',
320+
default=version,
316321
help=('Package version to download for GitHub '
317322
'sources')),
318-
cfg.DictOpt('sha256', default=sha256)]
323+
cfg.DictOpt('sha256',
324+
default=sha256,
325+
help=('Dictionary of sha256 sums for GitHub '
326+
'sources')),
327+
]
319328

320329

321330
def get_user_opts(uid, gid, group):

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
[tox]
22
minversion = 3.18
3-
skipsdist = True
43
envlist = pep8,py310-{docker,podman}
54
ignore_basepython_conflict = True
65

76
[testenv]
87
basepython = python3
9-
usedevelop=True
8+
usedevelop = True
109
allowlist_externals = find
1110
rm
1211
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}

0 commit comments

Comments
 (0)