canonical/lxd

`lxc storage volume <action>` completion issue with snapshots

Closed this issue · 0 comments

Steps to reproduce:

$ lxc storage volume create default foo
$ lxc storage volume snapshot default foo
$ lxc storage volume show default custom/foo<tab>
custom/foo                  custom/foo/snapshots/snap0

$ lxc storage volume show default custom/foo/snapshots/snap0 
Error: Invalid snapshot name

$ lxc storage volume show default custom/foo/snap0 
name: snap0
description: ""
content_type: filesystem
created_at: 2024-12-17T22:30:17.958279135Z
expires_at: 0001-01-01T00:00:00Z
config:
  volatile.uuid: 6ea5154a-6c91-4776-ad52-dcc84c4e9211

tl;dr: there is a bogus snapshots/ part being added during completion.