Open iii-arch opened 1 week ago
@iii-arch I'm getting a different error message, can you please provide a simple sample script to make sure this is the same issue.
Sure, here is the sample:
from netaddr import IPNetwork
from extras.scripts import Script
from ipam.models import IPAddress
from objexplore import explore
name = "Test Script"
class Test(Script):
class Meta:
name="Test"
description="Test Script"
def run(self, data, commit):
address = IPAddress(
address = IPNetwork("10.1.1.1/24")
)
address.save()
Deployment Type
Self-hosted
NetBox Version
v4.1.1
Python Version
3.12
Steps to Reproduce
This was happening because I was trying to import a python lib that wasn't installed.
Expected Behavior
In the UI there should be some kind of error message, not just the removal of "Run Script" button, also in the error message printed by the CLI version, at least the name of the script should be mentioned.
Observed Behavior
In GUI there is no error message, only "Run Script" button was removed, while in CLI the error message displayed is: