mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Fixed missed rename from MEMORY_UNIT_DIVISOR to RAM_BASE_UNIT
This commit is contained in:
parent
9f5c1c1367
commit
f5f5222c5b
@ -179,7 +179,7 @@ TRANSLATION_ENABLED = getattr(configuration, 'TRANSLATION_ENABLED', True)
|
|||||||
DISK_BASE_UNIT = getattr(configuration, 'DISK_BASE_UNIT', 1000)
|
DISK_BASE_UNIT = getattr(configuration, 'DISK_BASE_UNIT', 1000)
|
||||||
if DISK_BASE_UNIT not in [1000, 1024]:
|
if DISK_BASE_UNIT not in [1000, 1024]:
|
||||||
raise ImproperlyConfigured(f"DISK_BASE_UNIT must be 1000 or 1024 (found {DISK_BASE_UNIT})")
|
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]:
|
if RAM_BASE_UNIT not in [1000, 1024]:
|
||||||
raise ImproperlyConfigured(f"RAM_BASE_UNIT must be 1000 or 1024 (found {RAM_BASE_UNIT})")
|
raise ImproperlyConfigured(f"RAM_BASE_UNIT must be 1000 or 1024 (found {RAM_BASE_UNIT})")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user