def _GetColFormatString(width, align_right):
  if align_right:
    sign = ""
  else:
    sign = "-"

  return "%%%s%ss" % (sign, width)
Returns the format string for a field.
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/_GetColFormatString