aboutsummaryrefslogtreecommitdiff
path: root/kolla/cmd
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2016-01-15 15:48:28 +0000
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-02-12 06:00:20 +0000
commit477fc18bd0febb2d53c0c5053ccff76ae1589d25 (patch)
treeb3af58dd851cc6532c3b6fae500cde79fb771562 /kolla/cmd
parent013d21119f5cd2283c21e0b5d1d668fb2f44dbd3 (diff)
downloadkolla-477fc18bd0febb2d53c0c5053ccff76ae1589d25.tar.gz
kolla-477fc18bd0febb2d53c0c5053ccff76ae1589d25.zip
Fix image plugin functionality for oslo.config
The new oslo.config style parsing for kolla-build.conf stopped plugins from working. This patch fixes it and adds a unit test. Co-Authored-By: Jeffrey Zhang <zhang.lei.fly@gmail.com> Closes-Bug: 1534556 Change-Id: I135797c733ae0cae040a009c364073769b19e4eb
Diffstat (limited to 'kolla/cmd')
-rwxr-xr-xkolla/cmd/build.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index a127f02c8..120220331 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -604,7 +604,9 @@ class KollaWorker(object):
for plugin in [match.group(0) for match in
(re.search('{}-plugin-.+'.format(image['name']),
section) for section in
- self.conf._groups) if match]:
+ self.conf.list_all_sections()) if match]:
+ self.conf.register_opts(common_config.get_source_opts(),
+ plugin)
image['plugins'].append(
process_source_installation(image, plugin))