def healthy():
 zpool_cmd = _check_zpool()
 cmd = '{zpool_cmd} status -x'.format(zpool_cmd=zpool_cmd)
 res = __salt__['cmd.run_all'](cmd, python_shell=False)
 return (res['stdout'] == 'all pools are healthy')

def healthy ( ) : zpool_cmd = _check_zpool ( ) cmd = '{zpool_cmd} status -x' . format ( zpool_cmd = zpool_cmd ) res = __salt__ [ 'cmd.run_all' ] ( cmd , python_shell = False ) return ( res [ 'stdout' ] == 'all pools are healthy' )
return whether fmadm is reporting faults cli example: .