You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you need to run a charm tool outside of a Juju hook context, charm-env has to guess which charm directory to use, and it can only work properly if the charm is the one and only principle unit on the machine (i.e., not a subordinate, and no hulk-smashes). It should support a parameter to allow the charm author to disambiguate those cases by indicating the charm name (NB: not the unit name). Something like:
#!/usr/local/sbin/charm-env --charm foo python
The text was updated successfully, but these errors were encountered:
To disambiguate cases where there are multiple charms co-located on a
single machine, add a `--charm` option to the `charm-env` command.
Note that this specifies the name of the charm, not the application or
unit name, since the latter two change depending on how it is deployed.
Fixes#109
If you need to run a charm tool outside of a Juju hook context,
charm-env
has to guess which charm directory to use, and it can only work properly if the charm is the one and only principle unit on the machine (i.e., not a subordinate, and no hulk-smashes). It should support a parameter to allow the charm author to disambiguate those cases by indicating the charm name (NB: not the unit name). Something like:The text was updated successfully, but these errors were encountered: