Hi,
after some searching I did not find anything appropriate: I just want to
log some debug information in my on new module in libraries/cloud, so my
first attempt was to use vv, but when I import it
from ansible.callbacks import vv, vvv
it's always complaining about
Traceback (most recent call last):
File "/Users/m.joehren/.ansible_module_generated", line 72, in <module>
from ansible.callbacks import vv, vvv
File "/Users/m.joehren/matlockx/ansible/lib/ansible/callbacks.py", line
18, in <module>
import utils
File "/Users/m.joehren/matlockx/ansible/lib/ansible/utils/__init__.py",
line 29, in <module>
from ansible.utils.display_functions import *
File
"/Users/m.joehren/matlockx/ansible/lib/ansible/utils/display_functions.py",
line 22, in <module>
from ansible.callbacks import display
ImportError: cannot import name display
Is it a python thing that i'm missing here (i'm more or less python
beginner)?
Anyhow, how should debug logging in modules be done? And when I use vv, how
can I pass that to the test-module command on the command line?
Thanks in advance,
Martin
--
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/fa7a1c56-a7fd-49bd-8219-833e3462416a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.