Commit 12ba863
committed
Allow removing deleted projects from flavor access list
When a project has been deleted from Keystone, `flavor unset --project`
fails because find_project_id_sdk() validates the project existence
against Keystone before calling Nova's removeTenantAccess API.
Pass validate_actor_existence=False so that when the project is not
found in Keystone, the raw project ID is passed through to Nova, which
already handles deleted projects gracefully since the fix for
bug #1980845.
Closes-Bug: #2099702
Assisted-By: Claude-Code opus 4.6
Change-Id: Ida1608a0d8753e555206da56312a85536e50ba5b
Signed-off-by: René Ribaud <rene.ribaud@gmail.com>1 parent f6c9939 commit 12ba863
2 files changed
Lines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
636 | 637 | | |
637 | 638 | | |
638 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
1226 | | - | |
1227 | 1226 | | |
1228 | 1227 | | |
1229 | 1228 | | |
| |||
1240 | 1239 | | |
1241 | 1240 | | |
1242 | 1241 | | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1253 | 1248 | | |
1254 | | - | |
1255 | 1249 | | |
1256 | 1250 | | |
1257 | 1251 | | |
| |||
0 commit comments