Merge pull request #667 from sivel/extras-fixes

Extras module fix-ups
This commit is contained in:
Toshio Kuratomi 2015-06-30 12:08:27 -07:00
commit 3573f9b61a
9 changed files with 12 additions and 11 deletions

View file

@ -149,6 +149,7 @@ def main():
else: else:
module.fail_json(msg='Failed to upload', status=resp.status, reason=resp.reason, length=resp.length, version=resp.version, headers=resp.getheaders(), chunked=resp.chunked, url=url) module.fail_json(msg='Failed to upload', status=resp.status, reason=resp.reason, length=resp.length, version=resp.version, headers=resp.getheaders(), chunked=resp.chunked, url=url)
# this is magic, see lib/ansible/module_common.py # Import module snippets
#<<INCLUDE_ANSIBLE_MODULE_COMMON>> from ansible.module_utils.basic import *
main() main()

View file

@ -1,4 +1,4 @@
#! /usr/bin/python #!/usr/bin/python
# #
# Create a Webfaction application using Ansible and the Webfaction API # Create a Webfaction application using Ansible and the Webfaction API
# #

View file

@ -1,4 +1,4 @@
#! /usr/bin/python #!/usr/bin/python
# #
# Create a webfaction database using Ansible and the Webfaction API # Create a webfaction database using Ansible and the Webfaction API
# #

View file

@ -1,4 +1,4 @@
#! /usr/bin/python #!/usr/bin/python
# #
# Create Webfaction domains and subdomains using Ansible and the Webfaction API # Create Webfaction domains and subdomains using Ansible and the Webfaction API
# #

View file

@ -1,4 +1,4 @@
#! /usr/bin/python #!/usr/bin/python
# #
# Create webfaction mailbox using Ansible and the Webfaction API # Create webfaction mailbox using Ansible and the Webfaction API
# #

View file

@ -1,4 +1,4 @@
#! /usr/bin/python #!/usr/bin/python
# #
# Create Webfaction website using Ansible and the Webfaction API # Create Webfaction website using Ansible and the Webfaction API
# #

0
clustering/__init__.py Normal file
View file

View file

@ -225,10 +225,10 @@ def main():
update_password = module.params['update_password'] update_password = module.params['update_password']
try: try:
if replica_set: if replica_set:
client = MongoClient(login_host, int(login_port), replicaset=replica_set, ssl=ssl) client = MongoClient(login_host, int(login_port), replicaset=replica_set, ssl=ssl)
else: else:
client = MongoClient(login_host, int(login_port), ssl=ssl) client = MongoClient(login_host, int(login_port), ssl=ssl)
if login_user is None and login_password is None: if login_user is None and login_password is None:
mongocnf_creds = load_mongocnf() mongocnf_creds = load_mongocnf()