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

Mention specifically which account config has an error #1

Open
nkakouros opened this issue Oct 6, 2018 · 0 comments
Open

Mention specifically which account config has an error #1

nkakouros opened this issue Oct 6, 2018 · 0 comments

Comments

@nkakouros
Copy link
Collaborator

nkakouros commented Oct 6, 2018

Now, when an assertion on the contents of offlineimap_accounts fails, it does not mention the account that the assertion failed, making it a bit hard for the user to understand where exactly the error is.

The name of the failed account should also be returned. For this to happen and to avoid writing complex jinja2 templates, a custom filter should be used to read the offlineimap_accounts variable and return:

[
  [account1.name, account1.key1],
  [account1.name, account1.key2],
  ...,
  [account2.name, account2.key1],
  [account2.name, account2.key2],
  ...,
]

I haven't managed to achieve this with existing Ansible filters.

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

No branches or pull requests

1 participant