tab completion for interfaces incorrectly adds ':' to a snap name

Bug #1751305 reported by James Troup
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Low
Unassigned

Bug Description

If I type:

 snap interfaces ohmy<tab>

I get:

 snap interfaces ohmygiraffe:

And snappy complains:

 error: invalid value: "ohmygiraffe:" (want snap:name or snap)

The tab completion has figured out I'm completing a snap name (rather than an interface), so I'd expect to get:

 snap interfaces ohmygiraffe

This is with snapd 2.31.1 on an Ubuntu 16.04 system.

Tags: papercut
James Troup (elmo)
description: updated
Revision history for this message
Ian Johnson (anonymouse67) wrote :

The `snap interfaces` command has now been deprecated and the `snap connections` is now the command to use to inspect interface connections. I cannot reproduce the issue in this bug with the `snap connections` command, so I'm closing this.

Changed in snapd (Ubuntu):
status: New → Fix Released
Revision history for this message
John Lenton (chipaca) wrote :

eh... i'm uncomfortable about closing this.

the bug is still there, we're still offering these bad completions. 'snap interfaces' is deprecated but not removed. The fix should be straightforward (even though we expect it not to live long, it might... temporary workarounds living forever and all that)

I'm reopening, setting as a papercut.

Changed in snapd (Ubuntu):
status: Fix Released → Triaged
importance: Undecided → Low
tags: added: papercut
affects: snapd (Ubuntu) → snapd
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.