snap get with multiple values does not return json

Bug #1776466 reported by eraserix
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Confirmed
Low
Unassigned
snapd (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

$ snap version
snap 2.32.9+18.04
snapd 2.32.9+18.04
series 16
ubuntu 18.04
kernel 4.15.0-22-generic

Excerpt from "snap get -h":
...
If multiple option names are provided, a document is returned:

$ snap get snap-name username password
{
"username": "frank",
"password": "..."
}
...

However, I don't get a json document:
$ sudo snap get chuck-norris-webserver title port
Key Value
port 81
title i can bind

Code or documentation is wrong.

Tags: papercut
Revision history for this message
John Lenton (chipaca) wrote :

The docstring is wrong. Sorry. We'll fix it.

Changed in snapd (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
tags: added: papercut
Changed in snapd (Ubuntu):
importance: Medium → Low
Changed in snapd:
status: New → Confirmed
importance: Undecided → Low
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.