@task
def get_healthz():
  """Fetch healthz status for the local instance."""
  url = 'https://localhost:8443/healthz'
  ret = 'FAIL'
  with settings(warn_only=True):
    ret = run('curl -k %s' % url)
  fprint('Healthz status: %s' % ret)
  return ret == 'OK'
dataset/ETHPy150Open viewfinderco/viewfinder/fabfile.py/get_healthz/original