Support underscore in 'snap set' keys

Bug #1942367 reported by Omer Akram
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Won't Fix
Low
Samuele Pedroni

Bug Description

We have a use case where we generate environment variables and provide users to export in their environment. For snaps we will be providing them a way to export those variables by suggesting to run

$ snap set foo CLOUD_ENDPOINT=ws://x.x.x.x/ws

However it seems snapd does not allow underscore in keys. This makes it difficult to provide "consistent" instructions to our developers. Please support underscores in snap set command's keys

Omer Akram (om26er)
summary: - Support underscore in 'snap set` keys
+ Support underscore in 'snap set' keys
Revision history for this message
Ian Johnson (anonymouse67) wrote :

Assigning to Samuele to comment on whether we can support this or not in the design

Changed in snapd:
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Samuele Pedroni (pedronis)
Revision history for this message
Samuele Pedroni (pedronis) wrote :

keys are intentionally limited to lower case and -. The main reason is that usually if both - and _ are allowed people will sometime wonder which one is to be used for a given option. I don't see us reverting on this decision and line of thought.

Changed in snapd:
status: Triaged → Won't Fix
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.