mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Change credential to return 'ssh_password' instead of 'password' when value is set to 'ASK'.
This commit is contained in:
@@ -113,14 +113,10 @@ class AdHocCommand(UnifiedJob):
|
||||
@property
|
||||
def passwords_needed_to_start(self):
|
||||
'''Return list of password field names needed to start the job.'''
|
||||
needed = []
|
||||
if self.credential:
|
||||
for pw in self.credential.passwords_needed:
|
||||
if pw == 'password':
|
||||
needed.append('ssh_password')
|
||||
else:
|
||||
needed.append(pw)
|
||||
return needed
|
||||
return self.credential.passwords_needed
|
||||
else:
|
||||
return []
|
||||
|
||||
@classmethod
|
||||
def _get_parent_field_name(cls):
|
||||
|
||||
Reference in New Issue
Block a user