Skip to content

Commit

Permalink
Add validate_certs to jira module (ansible#34756)
Browse files Browse the repository at this point in the history
The jira module uses ansible.module_utils.urls.fetch_url which will
attempt to get that value of the validate_certs parameter from the
module; if present it will honor it's value, otherwise it defaults
to True.

This patch adds that parameter to jira so that it can be specified
by the user and honored by ansible.module_utils.urls.fetch_url

Signed-off-by: Adam Miller <[email protected]>
  • Loading branch information
maxamillion authored and ansibot committed Jan 12, 2018
1 parent 85f300e commit d860e13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ansible/modules/web_infrastructure/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@
- Set timeout, in seconds, on requests to JIRA API.
default: 10
validate_certs:
required: false
version_added: 2.5
description:
- Require valid SSL certificates (set to `false` if you'd like to use self-signed certificates)
default: true
notes:
- "Currently this only works with basic-auth."
Expand Down Expand Up @@ -391,6 +398,7 @@ def main():
inwardissue=dict(),
outwardissue=dict(),
timeout=dict(type='float', default=10),
validate_certs=dict(default=True, type='bool'),
),
supports_check_mode=False
)
Expand Down

0 comments on commit d860e13

Please sign in to comment.