Hi,
I develop a security module for adding firewall rules irrespective of OS
centos 6/centos7 or Ubuntu.But for ubuntu user i am try to give some
warning using " from ansible.utils.display import Display" module in
ansible-2.0. But on running the module using ansible I am getting below
error:
from ansible.utils.display import Display\r\nImportError: No module named
ansible.utils.display\r\n", "parsed": false}
Whereas I am able to import and display warning in python directly:
Python 2.7.5 (default, Jun 24 2015, 00:41:19)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ansible.utils.display import Display
>>> d=Display()
>>> d.warning("hi")
[WARNING]: hi
Can anyone know the issue, so that I can add the warning in my module.
thanks in advance for Quick help
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7632f718-304a-46cb-bd40-fc2a9ecc375a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.