From 4dce9c4da9f101277a88ccdde7cab3379e148a56 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 19 Feb 2019 21:47:13 +0100 Subject: [PATCH] manageiq: Clean up parameter types (#52538) This PR includes: - Parameter types added - Copyright format fixes - Short license statement This breaks out PR #52182 --- lib/ansible/plugins/doc_fragments/manageiq.py | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/lib/ansible/plugins/doc_fragments/manageiq.py b/lib/ansible/plugins/doc_fragments/manageiq.py index 397b65df483..cc59c436eb5 100644 --- a/lib/ansible/plugins/doc_fragments/manageiq.py +++ b/lib/ansible/plugins/doc_fragments/manageiq.py @@ -1,38 +1,47 @@ -# (c) 2017, Daniel Korn +# -*- coding: utf-8 -*- + +# Copyright: (c) 2017, Daniel Korn # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Standard ManageIQ documentation fragment - DOCUMENTATION = """ + DOCUMENTATION = r''' options: manageiq_connection: - required: true description: - ManageIQ connection configuration information. + required: true + type: dict suboptions: url: - required: true description: - ManageIQ environment url. C(MIQ_URL) env var if set. otherwise, it is required to pass it. + type: str + required: true username: description: - ManageIQ username. C(MIQ_USERNAME) env var if set. otherwise, required if no token is passed in. + type: str password: description: - ManageIQ password. C(MIQ_PASSWORD) env var if set. otherwise, required if no token is passed in. + type: str token: description: - ManageIQ token. C(MIQ_TOKEN) env var if set. otherwise, required if no username or password is passed in. + type: str verify_ssl: description: - Whether SSL certificates should be verified for HTTPS requests. defaults to True. - default: true + type: bool + default: yes ca_bundle_path: description: - The path to a CA bundle file or directory with certificates. defaults to None. + type: path requirements: - 'manageiq-client U(https://github.com/ManageIQ/manageiq-api-client-python/)' -""" +'''