@task
def get_healthz():
 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')

@ task def get_healthz ( ) : 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' )
fetch healthz status for the local instance .