Skip to content

incusd/project: Don't empty global default profile on force deletion#2416

Merged
stgraber merged 1 commit intolxc:mainfrom
serturx:fix-project-force-remove
Aug 21, 2025
Merged

incusd/project: Don't empty global default profile on force deletion#2416
stgraber merged 1 commit intolxc:mainfrom
serturx:fix-project-force-remove

Conversation

@serturx
Copy link
Copy Markdown
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).

@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