From 366d2c1d973131a2e60bb3aa3390e9b3c08e890f Mon Sep 17 00:00:00 2001 From: jakemcdermott Date: Wed, 8 Dec 2021 11:34:59 -0500 Subject: [PATCH] Handle exception for credential input checks in calling function --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index c46db34c4f..3bf15df97d 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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')