thedatahub / Datahub-Factory

Datahub::Factory - Transport metadata between Collection Management Systems and the Datahub
Other
2 stars 4 forks source link

Fixer Fix throws an error file_name is undefined #62

Closed netsensei closed 6 years ago

netsensei commented 6 years ago

The default Fixer "Fix" throws an error "file_name is undefined" when the file_name property is set, without the fixers property:

[Fixer]
plugin = Fix

[plugin_fixer_Fix]
file_name = '/path/to/fixfile'

The code in Pipeline::Transport does not check wether fixers is defined or not. It will just read out the fixers property nonetheless and set a default "undefined" fixer. This will trigger an error in Fixer::Fix because it assumes that there is an "undefined" fixer set, but its file_name property is missing.