Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Configure FPR commands and rules fail when using a dict with a single item list #290

Open
mamedin opened this issue Mar 31, 2020 · 1 comment
Assignees

Comments

@mamedin
Copy link
Contributor

mamedin commented Mar 31, 2020

When the fpcommand and fprule dictionary has a single item list, for instance when disabling FITS:

archivematica_src_configure_fpcommand:
  FITS:
    enabled: '0'
    field_name: 'description'

archivematica_src_configure_fprule:
  c3b06895-ef9d-401e-8c51-ac585f955655: #Fits
    enabled: '0'
    field_name: 'uuid'

The role fails with:

TASK [artefactual.archivematica-qa-src : Configure fpcommand settings] *******************************************************************************************************************************
fatal: [am111bigserver]: FAILED! => {"msg": "Invalid data passed to 'loop', it requires a list, got this instead: {'key': u'FITS', 'value': {u'field_name': u'description', u'enabled': u'0'}}. Hint: If you passed a list/dict of just one element, try adding wantlist=True to your lookup invocation or use q/query instead of lookup."}
@mamedin mamedin changed the title Problem: Configure FPR commands and rules fail when using dict with a single item list Problem: Configure FPR commands and rules fail when using a dict with a single item list Mar 31, 2020
@mamedin mamedin self-assigned this Mar 31, 2020
@mamedin
Copy link
Contributor Author

mamedin commented Mar 31, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant