Merge pull request #51893 from twangboy/gate_zfs_2017.7

Gate zfs module on Windows
This commit is contained in:
Daniel Wozniak 2019-02-27 17:32:56 -07:00 committed by GitHub
commit ad7a9ec0ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,10 @@ def _check_zfs():
Looks to see if zfs is present on the system.
'''
# Get the path to the zfs binary.
# Don't try to load this on Windows (#51703)
# Don't merge this forward
if salt.utils.platform.is_windows():
return False, 'ZFS: Not available on Windows'
return salt.utils.which('zfs')