Skip to content

Commit

Permalink
Merge pull request saltstack#51892 from twangboy/gate_zfs
Browse files Browse the repository at this point in the history
Gate zfs grain on Windows
  • Loading branch information
dwoz authored Feb 28, 2019
2 parents 89b0991 + fbc2c0c commit 1fa2072
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions salt/grains/zfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__


Expand Down

0 comments on commit 1fa2072

Please sign in to comment.