Revision 870dc44c lib/cmdlib.py

b/lib/cmdlib.py
1088 1088
  """
1089 1089
  if not os_obj.supported_variants:
1090 1090
    return
1091
  try:
1092
    variant = name.split("+", 1)[1]
1093
  except IndexError:
1091
  variant = objects.OS.GetVariant(name)
1092
  if not variant:
1094 1093
    raise errors.OpPrereqError("OS name must include a variant",
1095 1094
                               errors.ECODE_INVAL)
1096 1095

  

Also available in: Unified diff