From f5f5222c5b65bea8d0be34a054fcc26f25f113e3 Mon Sep 17 00:00:00 2001 From: Mika Busch Date: Fri, 7 Mar 2025 10:56:54 +0100 Subject: [PATCH] Fixed missed rename from MEMORY_UNIT_DIVISOR to RAM_BASE_UNIT --- netbox/netbox/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index f48865f52..0248fa888 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -179,7 +179,7 @@ TRANSLATION_ENABLED = getattr(configuration, 'TRANSLATION_ENABLED', True) DISK_BASE_UNIT = getattr(configuration, 'DISK_BASE_UNIT', 1000) if DISK_BASE_UNIT not in [1000, 1024]: raise ImproperlyConfigured(f"DISK_BASE_UNIT must be 1000 or 1024 (found {DISK_BASE_UNIT})") -RAM_BASE_UNIT = getattr(configuration, 'MEMORY_UNIT_DIVISOR', 1000) +RAM_BASE_UNIT = getattr(configuration, 'RAM_BASE_UNIT', 1000) if RAM_BASE_UNIT not in [1000, 1024]: raise ImproperlyConfigured(f"RAM_BASE_UNIT must be 1000 or 1024 (found {RAM_BASE_UNIT})")