mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-12 10:31:55 +00:00
fix: fixup ustorage
Somehow I missed lru_cache, ugh.
This commit is contained in:
parent
d1aaa4bccd
commit
6073549e7e
1 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,11 @@ import os
|
|||
import re
|
||||
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 = {
|
||||
"UNVRPRO": {
|
||||
|
|
Loading…
Reference in a new issue