Hi, all!
I’m trying to import:
117 from ansible.utils.display import Display
in my new module, placed in lib/ansible/modules/database/postgresql/
But during tests and execution the following error occurred:
Sanity check using import with Python 2.7
ERROR: Found 1 import issue(s) on python 2.7 which need to be resolved:
ERROR: lib/ansible/modules/database/postgresql/postgresql_ping.py:117:0: ImportError: No module named utils.display
…
Any ideas, why?
This module successfully imported by the same line in lib/ansible/utils/display.py.
I want to add it to display warnings in the shell.
Maybe there is better way to do this.
I’ll be grateful for any ideas, thank you!