1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

remove adhoc command credential required check from can_start() and rely on API only to enforce

This commit is contained in:
Chris Meyers 2015-05-19 14:57:05 -04:00
parent 28d9b994eb
commit a80602e40f

View File

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