fix: fixup ustorage

Somehow I missed lru_cache, ugh.
This commit is contained in:
Chris Blake 2024-07-12 20:04:16 -05:00
parent d1aaa4bccd
commit 6073549e7e

View file

@ -5,7 +5,11 @@ import os
import re import re
import sys import sys
from ubnthelpers import get_ubnt_shortname from functools import lru_cache
@lru_cache(None)
def get_ubnt_shortname() -> str:
return os.popen("ubnteeprom -systeminfo -key shortname").read().rstrip("\n")
DEVICE_DISK_INFO = { DEVICE_DISK_INFO = {
"UNVRPRO": { "UNVRPRO": {