-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: lxc storage volume
completion fixes and command description update
#14702
CLI: lxc storage volume
completion fixes and command description update
#14702
Conversation
f05c7f7
to
fed5f9d
Compare
…e show` Fixes canonical#14682. This commit fixes shell completions for snapshots when running `lxc storage volume show`. `GetStoragePoolVolumeNames` returns the full volume name including "/snapshots/", which is incorrect in the context of the CLI. Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 1bcc8b3)
…tion The command is `lxc storage volume snapshot <pool> <volume>` not `lxc storage volume snapshot create <pool> <volume>` Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 5a669ef)
Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit b67bf1a)
b6bd50a
to
3ad34fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still concerned with the approaches we're using to gather keys.
We need to have a single source of truth for config keys and not mix instancetype
and metadata API sources.
After the addition of improved configuration key validation with #14584, we don't actually need any validation in |
…g keys This commit fixes `cmpInstanceSetKeys` to return any set instance configuration key rather than just keys with known prefixes. We don't need to validate type here since a VM specific config key cannot be set for a container, and vice-versa, and we only return config keys that show up in an instance's full config. Signed-off-by: Kadin Sayani <[email protected]> (cherry picked from commit 4307f76)
Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
12f5d43
to
dbc4c86
Compare
I've removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #14682.
Summary of changes:
lxc storage volume show
.GetStoragePoolVolumeNames
returns the full volume name including "/snapshots/", which is incorrect in the context of the CLI. To address this issue, parsing has been added to serve valid completions for snapshot volumes.lxc storage volume snapshot
.cmpInstanceSetKeys
logic to provide completions for any instance keys which are currently set, not just prefixed keys.