confirm and document that bundles support charm_dir, repo_dir

Bug #1830561 reported by Paul Collins
8
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._get_phase_configs.

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.