quinot / ansible-plugin-lookup_ldap

Ansible LDAP lookup plugin
50 stars 16 forks source link

ImportError ? #10

Closed ghost closed 7 years ago

ghost commented 7 years ago

debian-stretch ansible 2.2.1.0 latest master

fatal: [...]: FAILED! => {"failed": true, "msg": "exception while preparing LDAP parameters: cannot import name template"}

no similar issues coming up with other modules or the template module itself

also no problem with importing template from the python REPL

Python 2.7.13 (default, Jan 19 2017, 14:48:08) 
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ansible import template
>>> template
<module 'ansible.template' from '/usr/lib/python2.7/dist-packages/ansible/template/__init__.pyc'>
>>> 

seems like an upstream bug?

ghost commented 7 years ago

this exception is not comming from this plugin, my mistake. is was another plugin that was loaded when ansible was loading the inventory.

maybe the broad exception could be more specific and let ansible handle the rest?