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')