def _BuildExportFields():
  fields = [
    (_MakeField("node", "Node", QFT_TEXT, "Node name"),
     None, QFF_HOSTNAME, lambda _, (node_name, expname): node_name),
    (_MakeField("export", "Export", QFT_TEXT, "Export name"),
     None, 0, _GetExportName),
    ]

  return _PrepareFieldList(fields, [])
Builds list of fields for exports.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_BuildExportFields