mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58:16 -06:00
Update references to is_executable
This commit is contained in:
parent
ba8329eb4a
commit
638c303bf0
@ -66,7 +66,7 @@ class Script(EventRulesMixin, JobsMixin, models.Model):
|
||||
|
||||
def delete_if_no_jobs(self):
|
||||
if self.jobs.all():
|
||||
self.is_valid = False
|
||||
self.is_executable = False
|
||||
self.save()
|
||||
else:
|
||||
self.delete()
|
||||
@ -142,7 +142,7 @@ class ScriptModule(PythonModuleMixin, JobsMixin, ManagedFile):
|
||||
Script.objects.create(
|
||||
module=self,
|
||||
name=name,
|
||||
is_valid=True,
|
||||
is_executable=True,
|
||||
)
|
||||
|
||||
def sync_data(self):
|
||||
|
Loading…
Reference in New Issue
Block a user