aboutsummaryrefslogtreecommitdiff
path: root/kolla/common
diff options
context:
space:
mode:
Diffstat (limited to 'kolla/common')
-rwxr-xr-xkolla/common/config.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 42eef7aaa..3ef4819be 100755
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -963,7 +963,7 @@ USERS = {
}
-def get_source_opts(type_=None, location=None, reference=None):
+def get_source_opts(type_=None, location=None, reference=None, enabled=True):
return [cfg.StrOpt('type', choices=['local', 'git', 'url'],
default=type_,
help='Source location type'),
@@ -971,7 +971,9 @@ def get_source_opts(type_=None, location=None, reference=None):
help='The location for source install'),
cfg.StrOpt('reference', default=reference,
help=('Git reference to pull, commit sha, tag '
- 'or branch name'))]
+ 'or branch name')),
+ cfg.BoolOpt('enabled', default=enabled,
+ help=('Whether the source is enabled'))]
def get_user_opts(uid, gid, group):
@@ -998,7 +1000,8 @@ def gen_all_source_opts():
type_ = params['type']
location = params['location']
reference = params.get('reference')
- yield name, get_source_opts(type_, location, reference)
+ enabled = params.get('enabled', True)
+ yield name, get_source_opts(type_, location, reference, enabled)
def list_opts():