Skip to content

Commit

Permalink
netbox v4.0.3 idaholab#385
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Jun 3, 2024
1 parent a00e825 commit 60a2fae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions netbox/scripts/netbox_superuser_create.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from django.contrib.auth.models import User
from users.models import Token
from users.models import Token, User
from os import getenv

# adapted from
# - https://github.com/netbox-community/netbox-docker/blob/b47e85ab3f2261021adf99ae9de2e9692fd674c3/docker/docker-entrypoint.sh#L74-L80
# - https://github.com/netbox-community/netbox-docker/blob/release/docker/docker-entrypoint.sh

superUserName = getenv('SUPERUSER_NAME', '')
superUserEmail = getenv('SUPERUSER_EMAIL', '')
Expand Down

0 comments on commit 60a2fae

Please sign in to comment.