1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #4300: Pass "commit" argument when executing scripts via REST API

This commit is contained in:
Jeremy Stretch
2020-03-02 13:29:32 -05:00
parent 1b38f3ad3a
commit c7b74b2090
3 changed files with 7 additions and 5 deletions

View File

@@ -582,7 +582,7 @@ class ScriptTest(APITestCase):
var2 = IntegerVar()
var3 = BooleanVar()
def run(self, data):
def run(self, data, commit=True):
self.log_info(data['var1'])
self.log_success(data['var2'])