confirm and document that bundles support charm_dir, repo_dir
Bug #1830561 reported by
Paul Collins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mojo: Continuous Delivery for Juju |
Triaged
|
Medium
|
Unassigned |
Bug Description
People are writing this sort of thing in Mojo bundles:
charm: {{ build_dir }}/../charms/{{ series }}/prometheus2
but BundlePhase is a subclass of DeployerPhase and therefore uses its template expansion logic, by calling self._get_configs in BundlePhase.
The above can thus be written
charm: {{ repo_dir }}/{{ series }}/prometheus2
or even
charm: {{ charm_dir }}/prometheus2
which are much nicer than the first example.
I suspect this came about because docs/mojo/readme.md documents the bundle phase as only supporting a subset of the template variables supported by the deploy phase.
Changed in mojo: | |
importance: | Undecided → Medium |
Changed in mojo: | |
status: | New → Triaged |
To post a comment you must log in.