Skip to content

Commit

Permalink
Include path as part of output in case of errors
Browse files Browse the repository at this point in the history
Co-authored-by: Marek Czernek <[email protected]>
  • Loading branch information
meaksh and m-czernek committed Jun 18, 2024
1 parent 09b0e8e commit 947b709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions salt/modules/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ def diskusage(*args):
ret[path] = {"available": available, "total": total}
except OSError as exc:
log.warning("Cannot get stats from '%s': %s", path, exc)
ret[path] = {"available": None, "total": None}
return ret


Expand Down

0 comments on commit 947b709

Please sign in to comment.