From 80fd45128f0670897342c849100d84321aaa1ec4 Mon Sep 17 00:00:00 2001 From: Dmitri Iouchtchenko Date: Fri, 17 Mar 2017 14:32:55 -0400 Subject: Server/Lint: Include RequiredBundle in referenced bundles --- src/lib/Bcfg2/Server/Lint/Bundler.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/lib/Bcfg2/Server/Lint/Bundler.py b/src/lib/Bcfg2/Server/Lint/Bundler.py index 576e157ad..7b024229b 100644 --- a/src/lib/Bcfg2/Server/Lint/Bundler.py +++ b/src/lib/Bcfg2/Server/Lint/Bundler.py @@ -29,8 +29,12 @@ class Bundler(ServerPlugin): # when given a list of files on stdin, this check is # useless, so skip it groupdata = self.metadata.groups_xml.xdata + ref_bundles = set([b.get("name") for b in groupdata.findall("//Bundle")]) + for bundle in self.core.plugins['Bundler'].bundles.values(): + ref_bundles |= set([rb.get("name") for rb in + bundle.xdata.findall(".//RequiredBundle")]) allbundles = self.core.plugins['Bundler'].bundles.keys() for bundle in ref_bundles: -- cgit v1.2.3-1-g7c22