diff --git a/store/templates/installation.php b/store/templates/installation.php index 75411f9..7a5c909 100644 --- a/store/templates/installation.php +++ b/store/templates/installation.php @@ -28,6 +28,8 @@ netbox-plugin-store @ git+https://git.mrblake.cc/MrBlake/Netbox-Store.git@main#s
API_TOKEN_PEPPERS = {
     1: "HIER_DEN_GENERIERTEN_WERT_EINTRAGEN",
 }
+

Achte auf den Doppelpunkt nach der numerischen ID (1:, nicht 1;). Prüfe die Python-Syntax, bevor du das Upgrade fortsetzt; bei Erfolg erzeugt dieser Befehl keine Ausgabe:

+
sudo /opt/netbox/venv/bin/python -m py_compile /opt/netbox/netbox/netbox/configuration.py

3. Plugin in NetBox aktivieren

Ergänze die NetBox-Konfiguration:

diff --git a/store/tests/run.php b/store/tests/run.php index 10e3ec0..a24c4bd 100644 --- a/store/tests/run.php +++ b/store/tests/run.php @@ -497,6 +497,7 @@ test('public and admin templates render safely with complete artifact evidence', assertTrue(str_contains($installation, 'https://netbox.mrblake.cc')); assertTrue(str_contains($installation, 'API_TOKEN_PEPPERS')); assertTrue(str_contains($installation, '/opt/netbox/netbox/generate_secret_key.py')); + assertTrue(str_contains($installation, 'python -m py_compile')); $admin = $view->render('admin/dashboard', [ 'title' => 'Admin', 'currentPath' => '/admin', 'adminEnabled' => true, 'adminUser' => 'admin', 'csrf' => 'safe-token', 'ok' => '', 'error' => '', 'sources' => $state['sources'],