Commit Graph

10 Commits (f7558164b5e4b289efda6ea5673f3e113698b525)

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
David Shrewsbury f71542ccf2 Fix parameters where type is assumed.
A change is coming to Ansible where module params will default to str.
Many of our modules were taking advantage of this by not being explicit
about the type, so they will break when that change merges. This hopefully
catches those cases.
9 years ago
Luke 40f2ff9fbf removed hyphens in module name in examples 9 years ago
Monty Taylor fbb6277a37 Fix a small typo in parameter processing 9 years ago
Monty Taylor 7b0b75ceed Fix dict syntax typo 10 years ago
Monty Taylor 759c2de7f9 Add filter ability 10 years ago
Greg DeKoenigsberg 28a869a030 Updating cloud modules with proper github author information 10 years ago
Monty Taylor 9e56b42574 AnsibleModule takes a dict as a param 10 years ago
Monty Taylor ce556a053e Return a list of OpenStack clouds
The main use of this is to feed jinja templating, so structure the
data returned slightly better for that purpose.
10 years ago
Monty Taylor 718c13bdf2 Add OpenStack Client Config module
All of the ansible OpenStack modules are driven by a clouds.yaml config
file which is processed by os-client-config. Expose the data returned by
that library to enable playbooks to iterate over available clouds.
10 years ago