mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 10:27:34 -02:30
Handle exception for credential input checks in calling function
This commit is contained in:
@@ -979,7 +979,7 @@ class BaseTask(object):
|
|||||||
|
|
||||||
if instance.execution_environment.credential:
|
if instance.execution_environment.credential:
|
||||||
cred = 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')
|
host = cred.get_input('host')
|
||||||
username = cred.get_input('username')
|
username = cred.get_input('username')
|
||||||
password = cred.get_input('password')
|
password = cred.get_input('password')
|
||||||
|
|||||||
Reference in New Issue
Block a user