Fixed creation of passwords for Netbox 2.9
This commit is contained in:
parent
9fae2b0f74
commit
3ace32dfc2
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ for username, user_details in users.items():
|
|||
if not User.objects.filter(username=username):
|
||||
user = User.objects.create_user(
|
||||
username = username,
|
||||
password = user_details.get('password', 0) or User.objects.make_random_password)
|
||||
password = user_details.get('password', 0) or User.objects.make_random_password())
|
||||
|
||||
print("👤 Created user",username)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue