refs #1588 fix usage of ogFindCache()
parent
caf1f44161
commit
c1dc47f160
|
@ -336,7 +336,11 @@ def ogGetSizeParameters (disk, par, repo, imgname, imgtype=None):
|
|||
#Comprobar espacio libre en el contenedor.
|
||||
sizefree = None
|
||||
if 'CACHE' == repo:
|
||||
cache_disk, cache_par = CacheLib.ogFindCache().split()
|
||||
CACHEPART = CacheLib.ogFindCache()
|
||||
if not CACHEPART:
|
||||
SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_NOTCACHE, '')
|
||||
return None
|
||||
cache_disk, cache_par = CACHEPART.split()
|
||||
sizefree = FileSystemLib.ogGetFreeSize (cache_disk, cache_par)
|
||||
if 'REPO' == repo:
|
||||
df_out = subprocess.run (['df', '-k'], capture_output=True, text=True).stdout
|
||||
|
|
Loading…
Reference in New Issue