mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #51893 from twangboy/gate_zfs_2017.7
Gate zfs module on Windows
This commit is contained in:
commit
ad7a9ec0ee
1 changed files with 4 additions and 0 deletions
|
@ -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')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue