Skip to content

Commit 308986a

Browse files
committed
Fix superuser handling for NetBox 4.0
1 parent 87e40c4 commit 308986a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vars/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
# Copyright (c) 2017-2018 Musee "lae" Ullah under the MIT License
3-
# Copyright (c) 2020 Guillaume Mazoyer under the GPL
3+
# Copyright (c) 2020-2024 Guillaume Mazoyer under the GPL
44

55
netbox_systemd_directory: /etc/systemd/system/
66

77
netbox_superuser_script: |
8-
from django.contrib.auth.models import User
8+
from users.models import User
99
from base64 import b64decode
1010
password = b64decode("{{ netbox_superuser_password | b64encode }}").decode("UTF-8")
1111
query = User.objects.filter(username="{{ netbox_superuser_username }}")

0 commit comments

Comments
 (0)