From d7d78f4fc72435d39ee9205b2dac766ea9d5c8c8 Mon Sep 17 00:00:00 2001 From: Martin Burggraf Date: Sun, 30 Aug 2026 14:04:04 +0200 Subject: [PATCH] Fix ruff complains --- netbox/extras/api/views.py | 2 +- netbox/extras/management/commands/runscript.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/extras/api/views.py b/netbox/extras/api/views.py index afed2fec3..f334a9d94 100644 --- a/netbox/extras/api/views.py +++ b/netbox/extras/api/views.py @@ -2,7 +2,7 @@ from django.core.exceptions import NON_FIELD_ERRORS from django.http import Http404 from django.shortcuts import get_object_or_404 from django.utils.translation import gettext_lazy as _ -from drf_spectacular.utils import OpenApiResponse, OpenApiTypes, extend_schema, extend_schema_view +from drf_spectacular.utils import OpenApiResponse, OpenApiTypes, extend_schema from rest_framework.decorators import action from rest_framework.exceptions import PermissionDenied, ValidationError from rest_framework.generics import RetrieveUpdateDestroyAPIView diff --git a/netbox/extras/management/commands/runscript.py b/netbox/extras/management/commands/runscript.py index de878fa39..4fe20a347 100644 --- a/netbox/extras/management/commands/runscript.py +++ b/netbox/extras/management/commands/runscript.py @@ -85,7 +85,7 @@ class Command(BaseCommand): cleaned_data = form.cleaned_data.copy() notifications = cleaned_data.pop('_notifications') for key in EXEC_PARAM_FIELDS: - cleaned_data.pop(key, None) + cleaned_data.pop(key, None) # Execute the script. job = ScriptJob.enqueue(