mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
pull #5144 : use built-in set instead of list
This commit is contained in:
parent
57d183bda0
commit
faa05712ff
@ -31,7 +31,7 @@ def __virtual__():
|
||||
'''
|
||||
Provides zpool only on supported OS
|
||||
'''
|
||||
supported = ['Solaris', 'SmartOS', 'FreeBSD']
|
||||
supported = set(('Solaris', 'SmartOS', 'FreeBSD'))
|
||||
if __grains__['os'] in supported and _check_zpool():
|
||||
# Don't let this work on Solaris 9 since ZFS is not available on it.
|
||||
if __grains__['os'] == 'Solaris' and __grains__['kernelrelease'] == '5.9':
|
||||
|
Loading…
Reference in New Issue
Block a user