diff --git a/netbox/extras/scripts.py b/netbox/extras/scripts.py index afb68d37d..3e914e5ac 100644 --- a/netbox/extras/scripts.py +++ b/netbox/extras/scripts.py @@ -362,13 +362,6 @@ class BaseScript: def source(self): return inspect.getsource(self.__class__) - @property - def is_valid(self): - """ - Indicates whether the report can be run. - """ - return bool(self.test_methods) - @classmethod def _get_vars(cls): vars = {} diff --git a/netbox/templates/extras/script_list.html b/netbox/templates/extras/script_list.html index 0c58c1eb3..448de2c8d 100644 --- a/netbox/templates/extras/script_list.html +++ b/netbox/templates/extras/script_list.html @@ -62,18 +62,10 @@ {% else %} {% trans "Never" %} - - {% if script.is_valid %} - {{ ''|placeholder }} - {% else %} - - {% trans "Invalid" %} - - {% endif %} - + {{ ''|placeholder }} {% endif %} - {% if perms.extras.run_script and script.is_valid %} + {% if perms.extras.run_script %}
{% csrf_token %}