Merge pull request #667 from sivel/extras-fixes

Extras module fix-ups
reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
commit 3573f9b61a

@ -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()

@ -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
# #

@ -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
# #

@ -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
# #

@ -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
# #

@ -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
# #

@ -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()

Loading…
Cancel
Save