Join GitHub today
fix roots modification time check #47700
What does this PR do?
Fix cache modification time comparison. When converting the modification from os.path.getmtime to string, the number is stripped and the comparison is always false. the hash is recomputed everytime
What issues does this PR fix or reference?
hash was compute everytime like if the cache was not present
cache is used
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.