Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[2018.3] fixes to diskusage beacon #50188
What does this PR do?
Fixing a bug in the diskusage beacon that prevented it from working on Windows. Adding a couple tests to test functionality on Windows.
What issues does this PR fix or reference?
Diskusage beacon previously does not work under Windows because the mount (drive) that is based in the configuration is being interrupted as a pattern by the re library, so the result from psutil.disk_partitions does not match.
In the event that the diskusage beacon is running on Windows, ensure that the necessary pattern is escaped so the interrupted result will match what is returned from psutil.
Commits signed with GPG?
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.