From 3ace32dfc2bccfb13104a0ec67ac479d38d165b2 Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Mon, 24 Aug 2020 11:00:48 +0200 Subject: [PATCH] Fixed creation of passwords for Netbox 2.9 --- startup_scripts/000_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup_scripts/000_users.py b/startup_scripts/000_users.py index 6605424..a801d85 100644 --- a/startup_scripts/000_users.py +++ b/startup_scripts/000_users.py @@ -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)