Commit 74d5ed3
committed
Get series from deployed app instead of metadata when charm upgrade
Fixes #668
Charmhub is modeling the charm data separately from where the charm is
deployed, therefore the series is not a part of the metadata anymore. So
instead of getting the series from the metadata we now get it
from the deployed application first, then we try the
model config, if everything fails then we look at the metadata as a
last resort (mostly to keep backwards compatibility).1 parent 768d7ff commit 74d5ed3
2 files changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
342 | 354 | | |
343 | 355 | | |
344 | 356 | | |
| |||
728 | 740 | | |
729 | 741 | | |
730 | 742 | | |
731 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
732 | 748 | | |
733 | | - | |
734 | 749 | | |
735 | 750 | | |
736 | 751 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
0 commit comments