aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-01-10 13:19:00 +0100
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2020-01-10 13:19:00 +0100
commitaaa472bfa257aea53abcb3642ad4beeaed1b99a8 (patch)
tree9c331ea3453661789ac730964bc3e1801af47ad2
parent360d335e94246d7095672c5aa92b59afa380a059 (diff)
downloadkolla-aaa472bfa257aea53abcb3642ad4beeaed1b99a8.tar.gz
kolla-aaa472bfa257aea53abcb3642ad4beeaed1b99a8.zip
config: make kolla work with oslo.config 7.0.0+
From oslo.config 7.0.0 release notes: > Positional options are now required by default, to match argparse’s > default behavior. To revert this behavior (and maintain optional > positional arguments), you need to explicitly specify positional=True, > required=False as part of the options definition. So let's follow. Change-Id: I77fdbcb905b1a7f2d535c3a37b2899118d1442c5
-rwxr-xr-xkolla/common/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 29c87afa8..9c95de302 100755
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -208,7 +208,7 @@ _CLI_OPTS = [
' push properly')),
cfg.IntOpt('retries', short='r', default=3, min=0,
help='The number of times to retry while building'),
- cfg.MultiOpt('regex', types.String(), positional=True,
+ cfg.MultiOpt('regex', types.String(), positional=True, required=False,
help=('Build only images matching regex and its'
' dependencies')),
cfg.StrOpt('registry',