Revision ba5c6c6b lib/objects.py

b/lib/objects.py
981 981
    """Checks the disk templates for validity.
982 982

  
983 983
    """
984
    if not disk_templates:
985
      raise errors.ConfigurationError("Instance policy must contain" +
986
                                      " at least one disk template")
984 987
    wrong = frozenset(disk_templates).difference(constants.DISK_TEMPLATES)
985 988
    if wrong:
986 989
      raise errors.ConfigurationError("Invalid disk template(s) %s" %

Also available in: Unified diff