Skip to content

Commit 5358eff

Browse files
committed
Fix issue that free space on NAS is not correctly parsed after server upgrade
1 parent 38e36c6 commit 5358eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

taca/backup/backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def avail_disk_space(self, path, run):
8989
try:
9090
df_proc = sp.Popen(['df', path], stdout=sp.PIPE, stderr=sp.PIPE)
9191
df_out, df_err = df_proc.communicate()
92-
available_size = int(df_out.strip().split('\n')[-1].strip().split()[2])/1024/1024
92+
available_size = int(df_out.strip().split('\n')[-1].strip().split()[3])/1024/1024
9393
except Exception as e:
9494
logger.error('Evaluation of disk space failed with error {}'.format(e))
9595
raise SystemExit

0 commit comments

Comments
 (0)