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
pull/21288/head
Ted 8 years ago committed by John R Barker
parent 4ad91fc96b
commit 65e32243b8

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

Loading…
Cancel
Save