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

Ошибка проверки типов переменных #17

Open
slavische opened this issue Sep 10, 2024 · 0 comments
Open

Ошибка проверки типов переменных #17

slavische opened this issue Sep 10, 2024 · 0 comments

Comments

@slavische
Copy link

slavische commented Sep 10, 2024

В текущей реализации значение по умолчанию у многих переменных задано как null (см default/main.yml). Это обстоятельство может приводить к ошибкам виды:

failed: [exporter-1] (item=None) => {"ansible_loop_var": "item", "changed": false, "item": null, "msg": "argument 'path' is of type <class 'NoneType'> and we were unable to convert to path: 'None' is not a string and conversion is not allowed"} подробнее

Таким образом нужно задать значения по умолчанию для переменных, которые имеют параметр required отличные от null, чтобы избежать проблем в случаях, когда значения не заданы пользователем.

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