Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix imports #51

Merged
merged 1 commit into from Dec 19, 2016
Merged

Fix imports #51

merged 1 commit into from Dec 19, 2016

Conversation

@agx
Copy link
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.

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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.