Skip to content

Commit

Permalink
Fix superuser handling for NetBox 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazoyer committed May 14, 2024
1 parent 87e40c4 commit 308986a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
# Copyright (c) 2017-2018 Musee "lae" Ullah under the MIT License
# Copyright (c) 2020 Guillaume Mazoyer under the GPL
# Copyright (c) 2020-2024 Guillaume Mazoyer under the GPL

netbox_systemd_directory: /etc/systemd/system/

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

0 comments on commit 308986a

Please sign in to comment.