Revision be0fc05d lib/config.py

b/lib/config.py
826 826
    """
827 827
    if not item.uuid:
828 828
      item.uuid = self._GenerateUniqueID(ec_id)
829
    elif item.uuid in self._AllIDs(temporary=True):
830
      raise errors.ConfigurationError("Cannot add '%s': UUID already in use" %
831
                                      (item.name, item.uuid))
829
    elif item.uuid in self._AllIDs(include_temporary=True):
830
      raise errors.ConfigurationError("Cannot add '%s': UUID %s already"
831
                                      " in use" % (item.name, item.uuid))
832 832

  
833 833
  def _SetInstanceStatus(self, instance_name, status):
834 834
    """Set the instance's status to a given value.

Also available in: Unified diff