1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make access_token type str, remove alias, and make validate_certs def… (#20811)

* Make access_token type str, remove alias, and make validate_certs default value true

* Remove extra white space and add end of file newline

* Remove comma

* Try removing that whitespace again
This commit is contained in:
Ted 2017-02-11 07:41:24 -08:00 committed by John R Barker
parent 4ad91fc96b
commit 65e32243b8

View file

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# Ansible module to manage Big Monitoring Fabric service chains
# (c) 2016, Ted Elhourani <ted@bigswitch.com>,
# (c) 2016, Ted Elhourani <ted@bigswitch.com>
#
# This file is part of Ansible
#
@ -53,11 +53,7 @@ options:
choices: [true, false]
access_token:
description:
- Bigmon access token.
required: false
notes:
- An environment variable can be used, BIGSWITCH_ACCESS_TOKEN.
- Bigmon access token. If this isn't set the the environment variable C(BIGSWITCH_ACCESS_TOKEN) is used.
'''
@ -67,6 +63,7 @@ EXAMPLES = '''
name: MyChain
controller: '{{ inventory_hostname }}'
state: present
validate_certs: false
'''
@ -144,8 +141,8 @@ def main():
name=dict(type='str', required=True),
controller=dict(type='str', required=True),
state=dict(choices=['present', 'absent'], default='present'),
validate_certs=dict(type='bool', default='False'),
access_token=dict(aliases=['BIGSWITCH_ACCESS_TOKEN'], no_log=True)
validate_certs=dict(type='bool', default='True'),
access_token=dict(type='str', no_log=True)
)
)