def CalculateOSNames(os_name, os_variants):
  if os_variants:
    return ["%s+%s" % (os_name, v) for v in os_variants]
  else:
    return [os_name]
Calculates all the names an OS can be called, according to its variants.
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/CalculateOSNames