From 547ecf58fdaf330241c0fabcfb54d21554726d0d Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 6 Mar 2025 10:03:33 -0800 Subject: [PATCH] 18423 review changes --- netbox/extras/forms/scripts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/extras/forms/scripts.py b/netbox/extras/forms/scripts.py index 55f5f3b19..6843347d8 100644 --- a/netbox/extras/forms/scripts.py +++ b/netbox/extras/forms/scripts.py @@ -75,9 +75,9 @@ class ScriptFileForm(ManagedFileForm): filename = self.cleaned_data['upload_file'].name if isinstance(storage, ScriptFileSystemStorage): - full_path = filename - else: full_path = os.path.join(settings.SCRIPTS_ROOT, filename) + else: + full_path = filename self.instance.file_path = full_path data = self.cleaned_data['upload_file']