def _List(listcmd, fields, names):
  master = qa_config.GetMasterNode()

  cmd = [listcmd, "list", "--separator=|", "--no-headers",
         "--output", ",".join(fields)]

  if names:
    cmd.extend(names)

  return GetCommandOutput(master.primary,
                          utils.ShellQuoteArgs(cmd)).splitlines()
Escape double-dashes in comment text.
dataset/ETHPy150Open ganeti/ganeti/qa/qa_utils.py/_List--crossover with--dataset/ETHPy150Open zackw/header-survey/sphinx/ext/html5_output.py/BaseTranslator.visit_comment