mirror of https://github.com/ansible/ansible.git
Wrap calls to main() with if check
A change was merged to the main Ansible core code that can cause
a potential hang if any libraries are called that use threading.
This change was:
4b0aa1214c
This affected the os_object module by causing a hang on the shade
create_object() API call (which in turn calls swiftclient which
uses threading). The fix is to make sure all modules have a main()
that is wrapped with an "if __name__ == '__main__'" check.
reviewable/pr18780/r1
parent
6b8a92045f
commit
6970cc233f
Loading…
Reference in New Issue