Example #1
0
def run(command, parser, cl_args, unknown_args):
  """ run command """
  clusters = utils.get_clusters()
  print 'Available clusters:'
  for cluster in clusters:
    print '  %s' % cluster
  return True
Example #2
0
def run(command, parser, cl_args, unknown_args):
  """ run command """
  try:
    clusters = utils.get_clusters()
  except:
    Log.error("Fail to connect to tracker: \'%s\'", cl_args["tracker_url"])
    return False
  print 'Available clusters:'
  for cluster in clusters:
    print '  %s' % cluster
  return True
Example #3
0
def run(command, parser, cl_args, unknown_args):
    """ run command """
    try:
        clusters = utils.get_clusters()
    except:
        Log.error("Fail to connect to tracker: \'%s\'", cl_args["tracker_url"])
        return False
    print 'Available clusters:'
    for cluster in clusters:
        print '  %s' % cluster
    return True
Example #4
0
def run(command, parser, cl_args, unknown_args):
  clusters = utils.get_clusters()
  print('Available clusters:')
  for cluster in clusters:
    print('  %s' % cluster)
  return True