mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Handle exception for credential input checks in calling function
This commit is contained in:
parent
1b0fca8026
commit
366d2c1d97
@ -979,7 +979,7 @@ class BaseTask(object):
|
||||
|
||||
if instance.execution_environment.credential:
|
||||
cred = instance.execution_environment.credential
|
||||
if cred.has_inputs(field_names=('host', 'username', 'password')):
|
||||
if all([cred.has_input(field_name) for field_name in ('host', 'username', 'password')]):
|
||||
host = cred.get_input('host')
|
||||
username = cred.get_input('username')
|
||||
password = cred.get_input('password')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user