mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
remove adhoc command credential required check from can_start() and rely on API only to enforce
This commit is contained in:
parent
28d9b994eb
commit
a80602e40f
@ -201,17 +201,6 @@ class AdHocCommand(UnifiedJob):
|
||||
update_fields.append('name')
|
||||
super(AdHocCommand, self).save(*args, **kwargs)
|
||||
|
||||
# AdHocCommand Credential required
|
||||
@property
|
||||
def can_start(self):
|
||||
if not super(AdHocCommand, self).can_start:
|
||||
return False
|
||||
|
||||
if not (self.credential and self.credential.active):
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
||||
class AdHocCommandEvent(CreatedModifiedModel):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user