From 7f206a137dfa93744a44feb3566216742ee27d16 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 21 Nov 2014 04:17:11 +0100 Subject: Server/Core: fix missing bundle error Bundles could be converted into Independent tags, so we need to check Bundle and Independent elements in the generated structure to find all requested bundles. --- src/lib/Bcfg2/Server/Core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Bcfg2/Server/Core.py b/src/lib/Bcfg2/Server/Core.py index bc305e47a..a6fe02c6b 100644 --- a/src/lib/Bcfg2/Server/Core.py +++ b/src/lib/Bcfg2/Server/Core.py @@ -560,7 +560,8 @@ class Core(object): structures = list( chain(*[struct.BuildStructures(metadata) for struct in self.plugins_by_type(Structure)])) - sbundles = [b.get('name') for b in structures if b.tag == 'Bundle'] + sbundles = [b.get('name') for b in structures + if b.tag == 'Bundle' or b.tag == 'Independent'] missing = [b for b in metadata.bundles if b not in sbundles] if missing: self.logger.error("Client %s configuration missing bundles: %s" % -- cgit v1.2.3-1-g7c22