Skip to content

Error "ScriptModule matching query does not exist." after upgrading netbox to 3.5.1 #14

Closed Answered by peteeckel
kemeris2000 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kemeris2000, I converted this issue to a discussion as it isn't an issue with NetBox DNS (or NetBox).

With your minimal script, we can run the tests quite easily. Let's do a walkthrough so you get an idea how that can be done.

Test the script itself

I just recreated your script on my NetBox 3.5.1 test instance (as file test.py):

#!/usr/bin/env python3

from extras.scripts import *

class bindrndc(Script):
    class Meta:
       name = "bind"
       description = "Manage DNS zones on name servers"


    def run(self, data, commit):
        return "aaaa"

In the GUI, look under 'Customization/Scripts' if it shows up. If it doesn't, one possible reason is permission problems - I stumbled…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@kemeris2000
Comment options

@peteeckel
Comment options

Answer selected by kemeris2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8 on May 14, 2023 11:12.