Fix imports #51

Merged
merged 1 commit into from Dec 19, 2016

Conversation

Projects
None yet
2 participants
@agx
Contributor

agx commented Dec 19, 2016

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.

Fix imports
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.

@Nosmoht Nosmoht merged commit b148e64 into Nosmoht:master Dec 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment