Merge pull request #11435 from jakemcdermott/fix-vaulted-ee-cred

Handle exception for credential input checks in calling function
This commit is contained in:
Jake McDermott
2021-12-13 10:10:23 -05:00
committed by GitHub

View File

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