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

ftd httpapi plugin: cannot be loaded without raising an error #147

Closed
felixfontein opened this issue Nov 13, 2020 · 0 comments · Fixed by #150
Closed

ftd httpapi plugin: cannot be loaded without raising an error #147

felixfontein opened this issue Nov 13, 2020 · 0 comments · Fixed by #150

Comments

@felixfontein
Copy link
Collaborator

SUMMARY

The plugin cannot be loaded without raising an error. It should do that when executed, not when being loaded!

ERROR: plugins/httpapi/ftd.py:60:0: traceback: ModuleNotFoundError: No module named 'urllib3'

See https://github.com/ansible-collections/community.general/blob/ef49950b96849ba8edcd74953a96a16cfd5d653e/plugins/lookup/consul_kv.py#L111-L116 and https://github.com/ansible-collections/community.general/blob/ef49950b96849ba8edcd74953a96a16cfd5d653e/plugins/lookup/consul_kv.py#L123-L125 for how to do this correctly.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

plugins/httpapi/ftd.py

ANSIBLE VERSION
latest
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

Successfully merging a pull request may close this issue.

1 participant