lxd/db/profiles.mapper.go
func (c *ClusterTx) ProfileExists(project string, name string) (bool, error) {
	_, err := c.ProfileID(project, name)
	if err != nil {
		if err == ErrNoSuchObject {
			return false, nil
		}
		return false, err
	}

	return true, nil
}
func (c *ClusterTx) ProfileExists(project string, name string) (bool, error) {
	_, err := c.ProfileID(project, name)
	if err != nil {
		if err == ErrNoSuchObject {
			return false, nil
		}
		return false, err
	}

	return true, nil
}
// ProfileExists checks if a profile with the given key exists.