Skip to content

Commit

Permalink
ovirt_auth: In case of token is passed u/p is not requierd (ansible#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
machacekondra authored and ryansb committed Jun 21, 2018
1 parent ba7d3da commit 8f14497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/cloud/ovirt/ovirt_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ def get_required_parameter(param, env_var, required=False):
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)
Expand Down

0 comments on commit 8f14497

Please sign in to comment.