Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Feb 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 5 additions & 8 deletions lib/ansible/modules/network/bigswitch/bigmon_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down Expand Up @@ -53,11 +53,7 @@
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.
'''


Expand All @@ -67,6 +63,7 @@
name: MyChain
controller: '{{ inventory_hostname }}'
state: present
validate_certs: false
'''


Expand Down Expand Up @@ -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)
)
)

Expand Down