snapcraft list-keys with no snap keys returns an empty table
Bug #1736864 reported by
Leo Arias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
This is similar to https:/
My account, according to the store has 5 keys. ( This is are the keys returned by store.get_
$ snap keys --json
[]
In this scenario, when I run snapcraft keys, I get an empty table:
$ snapcraft keys
Name SHA3-384 fingerprint
Instead of reporting an empty table, it should return a nice message saying that no keys are registered. Maybe explaining how to register one.
To post a comment you must log in.
Hi! This looks like a problem on line 244 (my fix for 1720210) which checks enabled_keys is empty or not.
Instead, it should check the list keys is empty or not.