Jeremy Stretch 5 лет назад
Родитель
Сommit
fc1feec8bf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netbox/utilities/auth_backends.py

+ 1 - 1
netbox/utilities/auth_backends.py

@@ -48,7 +48,7 @@ class RemoteUserBackend(ViewExemptModelBackend, RemoteUserBackend_):
             try:
             try:
                 group_list.append(Group.objects.get(name=name))
                 group_list.append(Group.objects.get(name=name))
             except Group.DoesNotExist:
             except Group.DoesNotExist:
-                logging.error("Could not assign group {name} to remotely-authenticated user {user}: Group not found")
+                logging.error(f"Could not assign group {name} to remotely-authenticated user {user}: Group not found")
         if group_list:
         if group_list:
             user.groups.add(*group_list)
             user.groups.add(*group_list)
             logger.debug(f"Assigned groups to remotely-authenticated user {user}: {group_list}")
             logger.debug(f"Assigned groups to remotely-authenticated user {user}: {group_list}")