thedatahub / Datahub-Factory

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

Error when adding only one fixer when Fix plugin is used #59

Closed netsensei closed 5 years ago

netsensei commented 6 years ago

Given this pipeline:

[Fixer]
plugin = Fix

[plugin_fixer_Fix]
condition_path = "_metadata.institution\\.name.value"
fixers = AAA

[plugin_fixer_AAA]
condition = 'Instiution A'
file_name = '/tmp/AAA.ini'

[plugin_fixer_BBB]
condition = 'Institution B'
file_name = '/tmp/BBB.ini'

Yields this error:

Oops! Can't use string ("AAA") as an ARRAY ref while "strict refs" in use at /Users/matthiasvandermaesen/.plenv/versions/5.26.0/lib/perl5/site_perl/5.26.0/Datahub/Factory/Pipeline/Transport.pm line 92.