I have just started to learn on how to build modules in Ansible.

I have followed this page,  
http://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html

I created the python file, cloned the ansible repo told there, and ran the 
command, 

ansible/hacking/test-module -m ./timetest.py

But I am getting something like this, 

Unable to set correct type for DEFAULT_LOCAL_TMP, skipping* including generated 
source, if any, saving to: /home/luvpreet/.ansible_module_generated
***********************************
RAW OUTPUT
{"time": "2017-07-26 17:55:17.854018"}


***********************************
PARSED OUTPUT
{
    "time": "2017-07-26 17:55:17.854018"
}
Traceback (most recent call last):
  File "ansible/hacking/test-module", line 271, in <module>
    shutil.rmtree(C.DEFAULT_LOCAL_TMP, True)
AttributeError: 'module' object has no attribute 'DEFAULT_LOCAL_TMP'


What is the issue here ?

-- 
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/fd4be6ef-d0b5-45ff-93f9-c1a07912dae5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to