Gate zfs grain on Windows

This commit is contained in:
twangboy 2019-02-27 14:33:28 -07:00
parent 89b09912e1
commit fbc2c0c2a3
No known key found for this signature in database
GPG Key ID: 93FF3BDEB278C9EB

View File

@ -45,6 +45,9 @@ def __virtual__():
'''
# NOTE: we always load this grain so we can properly export
# at least the zfs_support grain
# except for Windows... don't try to load this on Windows (#51703)
if salt.utils.platform.is_windows():
return False, 'ZFS: Not available on Windows'
return __virtualname__