Commit 2a9b908
committed
fix: Skip missing tenant schemas in demo user seeding
SeedDemoUsers iterates all tenants from DEMO_OPERATOR_TENANT (comma-
separated). When a listed tenant has not been provisioned in the
current environment (e.g. payg_energy on demo), the schema lookup
fails with ErrTenantSchemaNotProvisioned and aborts the entire
seeding operation - even though earlier tenants (volterra_energy)
were seeded successfully.
Skip tenants with missing schemas instead of failing. Log a warning
so the skip is visible in deploy logs without blocking the pipeline.1 parent b3b0bd5 commit 2a9b908
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
216 | 227 | | |
217 | 228 | | |
218 | 229 | | |
| |||
0 commit comments