mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix error handling in salt.modules.file.statvfs
The old error messaged printed the wrong variable and was also misleading as statvfs does not create any files.
This commit is contained in:
parent
b22286476e
commit
1beddf6311
1 changed files with 1 additions and 1 deletions
|
@ -2560,7 +2560,7 @@ def statvfs(path):
|
|||
'f_blocks', 'f_bsize', 'f_favail', 'f_ffree', 'f_files', 'f_flag',
|
||||
'f_frsize', 'f_namemax'))
|
||||
except (OSError, IOError):
|
||||
raise CommandExecutionError('Could not create {0!r}'.format(link))
|
||||
raise CommandExecutionError('Could not statvfs {0!r}'.format(path))
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue