mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Check dynamic_input fields also with has_inputs() - Fixes,
using credential plugins in Container Registry credential, with execution environments Signed-off-by: quasd <qquasd@gmail.com>
This commit is contained in:
parent
424dbe8208
commit
637d6173bc
@ -299,10 +299,7 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique, ResourceMixin):
|
||||
|
||||
def has_inputs(self, field_names=()):
|
||||
for name in field_names:
|
||||
if name in self.inputs:
|
||||
if self.inputs[name] in ('', None):
|
||||
return False
|
||||
else:
|
||||
if not self.has_input(name):
|
||||
raise ValueError('{} is not an input field'.format(name))
|
||||
return True
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user