Nosmoht / ansible-module-foreman

Ansible module to manage configuration of Foreman
49 stars 32 forks source link

Fix imports #51

Closed agx closed 7 years ago

agx commented 7 years ago

Ansible wants

from ansible.module_utils.basic import *

otherwise it aborts with:

fatal: [foo.example.com]: FAILED! => {"failed": true, "msg": "ERROR! error importing module in /home/godiug/infra20/ansible-foreman-resources/library/ansible-module-foreman/foreman_image.py, expecting format like 'from ansible.module_utils.basic import *'"}

on Ansible 2.0 at least.

See

http://docs.ansible.com/ansible/dev_guide/developing_program_flow_modules.html#module-replacer

for details.