diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2014-11-21 04:17:11 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2014-11-21 04:19:42 +0100 |
commit | 7f206a137dfa93744a44feb3566216742ee27d16 (patch) | |
tree | c7535f75e3741e5ce1ab52adde8c8aa01db8c222 /src/lib | |
parent | c544b18a985edd7444593e75ad52483f4842c119 (diff) | |
download | bcfg2-7f206a137dfa93744a44feb3566216742ee27d16.tar.gz bcfg2-7f206a137dfa93744a44feb3566216742ee27d16.tar.bz2 bcfg2-7f206a137dfa93744a44feb3566216742ee27d16.zip |
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.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Server/Core.py | 3 |
1 files changed, 2 insertions, 1 deletions
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" % |