Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Conversation

@Fale
Copy link
Contributor

@Fale Fale commented Dec 5, 2016

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

cloud/amazon/*

ANSIBLE VERSION
2.2
SUMMARY

Use conditional main as for the 16th point of the module checklist at http://docs.ansible.com/ansible/dev_guide/developing_modules.html#module-checklist that reads:

Call your main() from a conditional so that it would be possible to import them into unittests in the future example:

if __name__ == '__main__':
    main()

@ryansb ryansb merged commit d90426e into ansible:devel Dec 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants