Revision 2a7c3583 daemons/ganeti-watcher

b/daemons/ganeti-watcher
610 610
  @return: Whether RAPI is working properly
611 611

  
612 612
  """
613
  ssl_config = rapi.client.CertAuthorityVerify(constants.RAPI_CERT_FILE)
614
  rapi_client = \
615
    rapi.client.GanetiRapiClient(hostname,
616
                                 config_ssl_verification=ssl_config)
613
  curl_config = rapi.client.GenericCurlConfig(cafile=constants.RAPI_CERT_FILE)
614
  rapi_client = rapi.client.GanetiRapiClient(hostname,
615
                                             curl_config_fn=curl_config)
617 616
  try:
618 617
    master_version = rapi_client.GetVersion()
619 618
  except rapi.client.CertificateError, err:
......
646 645
  return options, args
647 646

  
648 647

  
648
@rapi.client.UsesRapiClient
649 649
def main():
650 650
  """Main function.
651 651

  

Also available in: Unified diff