Skip to content

Conversation

serturx
Copy link
Contributor

@serturx serturx commented Aug 21, 2025

If a project has features.profiles = false set, the project shares its default profile with the default project. When force-deleting a project (incus project delete --force), its default profile is cleared whether or not the default profile of the deleted project is actually the global default profile.

This PR fixes it so that a projects default profile is only emptied, if it actually holds one itself (when features.profiles = true).

Signed-off-by: David Schneider <david@schndr.dev>
@serturx serturx requested a review from stgraber as a code owner August 21, 2025 14:56
@stgraber stgraber merged commit f966a4c into lxc:main Aug 21, 2025
32 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants