Skip to content

Commit

Permalink
Merge pull request #294 from chuan-wang/master
Browse files Browse the repository at this point in the history
Fix issue that free space on NAS is not correctly parsed after server…
  • Loading branch information
ssjunnebo authored Oct 21, 2020
2 parents bded2b0 + 5358eff commit 084da7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taca/backup/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def avail_disk_space(self, path, run):
try:
df_proc = sp.Popen(['df', path], stdout=sp.PIPE, stderr=sp.PIPE)
df_out, df_err = df_proc.communicate()
available_size = int(df_out.strip().split('\n')[-1].strip().split()[2])/1024/1024
available_size = int(df_out.strip().split('\n')[-1].strip().split()[3])/1024/1024
except Exception as e:
logger.error('Evaluation of disk space failed with error {}'.format(e))
raise SystemExit
Expand Down

0 comments on commit 084da7f

Please sign in to comment.