juju config does not expand '~' when using the '@' shortut

Bug #1696913 reported by Thomi Richards
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned

Bug Description

When setting config options where the config data comes from a file, the '@' shortcut makes things really easy:

$ juju config my-application option_name=@some_file

However, it doesn't expand '~' to the users home directory, which can be a little confusing:

$ juju config external-services cassandra_clusters=@~/jc
ERROR cannot read option from file "~/jc": stat /home/thomi/code/canonical/charms/external-services/~/jc: no such file or directory

...and yet the file exists:

$ ls ~/jc
/home/thomi/jc

...and expanding the path manually works just fine:

$ juju config external-services cassandra_clusters=@/home/thomi/jc

John A Meinel (jameinel)
tags: added: usability
Changed in juju:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Witold Krecicki (wpk) wrote :
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.