def _zpool_data(grains):
 if (salt.utils.is_windows() or ('proxyminion' in __opts__)):
  return {}
 if (not salt.utils.which('zpool')):
  return {}
 zpool_grains = {}
 for zpool in __salt__['cmd.run']('zpool list -H -o name,size').splitlines():
  zpool = zpool.split()
  zpool_grains[zpool[0]] = zpool[1]
 if (len(zpool_grains.keys()) < 1):
  return {}
 return {'zpool': zpool_grains}

def _zpool_data ( grains ) : if ( salt . utils . is_windows ( ) or ( 'proxyminion' in __opts__ ) ) : return { } if ( not salt . utils . which ( 'zpool' ) ) : return { } zpool_grains = { } for zpool in __salt__ [ 'cmd.run' ] ( 'zpool list -H -o name,size' ) . splitlines ( ) : zpool = zpool . split ( ) zpool_grains [ zpool [ 0 ] ] = zpool [ 1 ] if ( len ( zpool_grains . keys ( ) ) < 1 ) : return { } return { 'zpool' : zpool_grains }
provide grains about zpools .