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

odoo_role_db_port not defined #161

Closed
1 task done
oyale opened this issue Apr 23, 2024 · 1 comment · Fixed by #162
Closed
1 task done

odoo_role_db_port not defined #161

oyale opened this issue Apr 23, 2024 · 1 comment · Fixed by #162
Labels
bug Something isn't working

Comments

@oyale
Copy link
Contributor

oyale commented Apr 23, 2024

In odoo.conf.j2 there is a conditional on odoo_role_db_port variable.

{% if odoo_role_db_port %}

However, if not defined, Ansible will crash. Tested with devenv.

TASK [odoo-role : Add Odoo config] *****************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'odoo_role_db_port' is undefined
fatal: [odoo-role-test.local]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'odoo_role_db_port' is undefined"}

Tasks

@oyale oyale added the bug Something isn't working label Apr 23, 2024
oyale added a commit that referenced this issue Apr 23, 2024
If not defined, Ansible crashes.

Fixes #161
@oyale
Copy link
Contributor Author

oyale commented May 16, 2024

@danypr92 could you take a look? I've noticed that the previous change on that line was yours doing the opposite 🐙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant