mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-27 10:21:49 -05:00
changed passwords_needed_to_start to take into acount if a credential is deleted
This commit is contained in:
@@ -114,7 +114,7 @@ class AdHocCommand(UnifiedJob):
|
||||
@property
|
||||
def passwords_needed_to_start(self):
|
||||
'''Return list of password field names needed to start the job.'''
|
||||
if self.credential:
|
||||
if self.credential and self.credential.active:
|
||||
return self.credential.passwords_needed
|
||||
else:
|
||||
return []
|
||||
|
||||
@@ -141,7 +141,7 @@ class JobOptions(BaseModel):
|
||||
@property
|
||||
def passwords_needed_to_start(self):
|
||||
'''Return list of password field names needed to start the job.'''
|
||||
if self.credential:
|
||||
if self.credential and self.credential.active:
|
||||
return self.credential.passwords_needed
|
||||
else:
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user