Ticket #1047 (closed defect: fixed)
Pkgmgr calls predicate with incorrect number of arguments
Reported by: | Calen Pennington <[email protected]…> | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | bcfg2-server | Version: | |
Keywords: | Cc: |
Description
Unexpected failure in BindStructure?: Package wgen-python26-cx_Oracle Traceback (most recent call last):
File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Core.py", line 232, in BindStructure?
self.Bind(entry, metadata)
File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Core.py", line 266, in Bind
metadata)
File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugins/Pkgmgr.py", line 153, in BindEntry?
Bcfg2.Server.Plugin.PrioDir?.BindEntry?(self, entry, metadata)
File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 786, in BindEntry?
attrs = self.get_attrs(entry, metadata)
File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 793, in get_attrs
for src in list(self.entries.values())]:
File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugin.py", line 743, in Cache
self.pnode.Match(metadata, cache[1])
File "/home/cpennington/.virtualenvs/py26-bcfg2/lib/python2.6/site-packages/Bcfg2/Server/Plugins/Pkgmgr.py", line 50, in Match
if self.predicate(metadata):
TypeError?: <lambda>() takes exactly 2 arguments (1 given)
Attachments
Change History
comment:1 Changed 12 years ago by Calen Pennington <[email protected]…>
Changed 12 years ago by Calen Pennington <[email protected]…>
- Attachment 0001-Fix-predicate-call-from-Pkgmgr.patch added
Proposed Fix
comment:2 Changed 12 years ago by solj
- Status changed from new to closed
- Resolution set to fixed
Added in a3f986e98b29bfa5f1f5dfd82bac52274091c440. Thanks for the patch!
comment:3 Changed 9 years ago by Williamdype
- Version 1.0 deleted
- Milestone Bcfg2 1.2.0 Release deleted
Interesting helpful bugs noticed here. This is test post http://xd6lfj3z.com
Sorry, that stack trace was rather malformed. Trying to pretty it up: