Commit d7c42723 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

watcher: Make RAPI error messages less technical


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 54ca6e4b
...@@ -401,13 +401,14 @@ def IsRapiResponding(hostname): ...@@ -401,13 +401,14 @@ def IsRapiResponding(hostname):
try: try:
master_version = rapi_client.GetVersion() master_version = rapi_client.GetVersion()
except rapi.client.CertificateError, err: except rapi.client.CertificateError, err:
logging.warning("RAPI Error: CertificateError (%s)", err) logging.warning("RAPI certificate error: %s", err)
return False return False
except rapi.client.GanetiApiError, err: except rapi.client.GanetiApiError, err:
logging.warning("RAPI Error: GanetiApiError (%s)", err) logging.warning("RAPI error: %s", err)
return False return False
logging.debug("RAPI Result: master_version is %s", master_version) else:
return master_version == constants.RAPI_VERSION logging.debug("Reported RAPI version %s", master_version)
return master_version == constants.RAPI_VERSION
def ParseOptions(): def ParseOptions():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment