Modify ↓
Ticket #148 (closed defect: fixed)
bcfg2 fails to build config if Base/ directory is empty
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 0.8.5 Release |
Component: | bcfg2-server | Version: | |
Keywords: | bcfg2-info | Cc: |
Description
I've enabled the Base Plugin as structure in my bcfg2.conf file.
My Base/ directory in the repository is empty.
$ bcfg2-info ... > build myhostname config.txt error in GetStructures Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 300, in BuildConfiguration structures = self.GetStructures(meta) File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Core.py", line 263, in GetStructures [struct.BuildStructures(metadata) for struct in self.structures]) File "/usr/lib/python2.4/site-packages/Bcfg2/Server/Plugins/Base.py", line 29, in BuildStructures [base.Match(metadata) for base in self.entries.values()]) TypeError: reduce() of empty sequence with no initial value
After creating an empty file Base/test.xml bcfg2-info is able to produce a config file for the specified host.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
Resolved in [3ef49c0a67e99c24ef804b8e4e696f3705edc86e] (SVN r2341).