Commit Graph

7 Commits (21078d74623bc07eec6a95a307a1b247b864daf2)

Author SHA1 Message Date
David Shrewsbury 6970cc233f 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.
9 years ago
Terry Howe 447d1e4b7c Fix openstack module documentation 9 years ago
David Shrewsbury e8abea25c7 Fix OpenStack module failure output
The exception message, when shade fails, will contain much more
specific information about the failure if the exception is treated
as a string. The 'message' attribute alone is usually not helpful.
9 years ago
Dmitry Labutin 35d32c9378 Fix issue #2721: os_object parameters and docs don't align (file/filename) 9 years ago
Monty Taylor 5609d1dc5a Return resource objects from OpenStack modules
It's not uncommon for people to want to do additional things after
creating a module. Also, add a note about it to the dev notes.
10 years ago
Brian Coca 898e338318 minor doc fixes 10 years ago
Monty Taylor f2c6619826 Add OpenStack Object module 10 years ago