From 8f144976df93dfc3ce0aa6bebeca18769d50de1e Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Thu, 21 Jun 2018 19:15:47 +0200 Subject: [PATCH] ovirt_auth: In case of token is passed u/p is not requierd (#41788) --- lib/ansible/modules/cloud/ovirt/ovirt_auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_auth.py b/lib/ansible/modules/cloud/ovirt/ovirt_auth.py index 059ea5245ba..5c06b482c3e 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_auth.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_auth.py @@ -267,8 +267,8 @@ def main(): if url is None and hostname is not None: url = 'https://{0}/ovirt-engine/api'.format(hostname) - username = get_required_parameter('username', 'OVIRT_USERNAME', required=True) - password = get_required_parameter('password', 'OVIRT_PASSWORD', required=True) + username = get_required_parameter('username', 'OVIRT_USERNAME') + password = get_required_parameter('password', 'OVIRT_PASSWORD') token = get_required_parameter('token', 'OVIRT_TOKEN') ca_file = get_required_parameter('ca_file', 'OVIRT_CAFILE') insecure = params.get('insecure') if params.get('insecure') is not None else not bool(ca_file)