@decorators.memoize
def _check_features():
 man = salt.utils.which('man')
 if (not man):
  return False
 cmd = '{man} zpool-features'.format(man=man)
 res = __salt__['cmd.run_all'](cmd, python_shell=False)
 return (res['retcode'] == 0)

@ decorators . memoize def _check_features ( ) : man = salt . utils . which ( 'man' ) if ( not man ) : return False cmd = '{man} zpool-features' . format ( man = man ) res = __salt__ [ 'cmd.run_all' ] ( cmd , python_shell = False ) return ( res [ 'retcode' ] == 0 )
looks to see if zpool-features is available .