Commit a69f8fb
committed
Ensure num_units is adjusted correctly for subordinate charms
Subordinate charms are by definition don't require additional
units. So num-units should be 0 at deploy.
Normally in libjuju num_units defaults to 1, this change lets libjuju
to check the metadata from charmhub to see if we're deploying a
subordinate charm. If that's the case then we adjust the num-units to
0 to be able to deploy it without any problems from Juju's side.
fixes #6391 parent 4f1944c commit a69f8fb
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1622 | 1622 | | |
1623 | 1623 | | |
1624 | 1624 | | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
1625 | 1635 | | |
1626 | 1636 | | |
1627 | 1637 | | |
| |||
0 commit comments