From 477fc18bd0febb2d53c0c5053ccff76ae1589d25 Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Fri, 15 Jan 2016 15:48:28 +0000 Subject: 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 Closes-Bug: 1534556 Change-Id: I135797c733ae0cae040a009c364073769b19e4eb --- kolla/cmd/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kolla/cmd') 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)) -- cgit v1.2.3