Exemple #1
0
def get_clusters():
  instance = tornado.ioloop.IOLoop.instance()
  try:
    return instance.run_sync(lambda: API.get_clusters())
  except Exception as ex:
    Log.error('Error: %s' % str(ex))
    Log.error('Failed to retrive clusters')
    raise
Exemple #2
0
def get_clusters():
  """Synced API call to get all cluster names"""
  instance = tornado.ioloop.IOLoop.instance()
  # pylint: disable=unnecessary-lambda
  try:
    return instance.run_sync(lambda: API.get_clusters())
  except Exception:
    Log.info(traceback.format_exc())
    raise
Exemple #3
0
def get_clusters():
    """Synced API call to get all cluster names"""
    instance = tornado.ioloop.IOLoop.instance()
    # pylint: disable=unnecessary-lambda
    try:
        return instance.run_sync(lambda: API.get_clusters())
    except Exception:
        Log.debug(traceback.format_exc())
        raise
Exemple #4
0
def get_clusters():
  """Synced API call to get all cluster names"""
  instance = tornado.ioloop.IOLoop.instance()
  # pylint: disable=unnecessary-lambda
  try:
    return instance.run_sync(lambda: API.get_clusters())
  except Exception as ex:
    Log.error('Error: %s' % str(ex))
    Log.error('Failed to retrive clusters')
    raise