mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-12 18:41: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 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": {
|
||||||
|
|
Loading…
Reference in a new issue