Skip to content
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

Tab completion doesn't work against non-local remotes for lxc <action> commands #14648

Open
simondeziel opened this issue Dec 12, 2024 · 1 comment
Assignees
Labels
Bug Confirmed to be a bug
Milestone

Comments

@simondeziel
Copy link
Member

Setup:

# lxd init --auto
# lxc config set core.https_address ::
# lxc launch images:alpine/edge a1

Using the ubuntu user to avoid using the local Unix socket:

# token="$(lxc config trust add --name test --quiet)"
# deluser ubuntu lxd

$ su - ubuntu
$ lxc remote add localhost https://127.0.0.1:8443 --token "${token}"
Trust token for localhost: Client certificate now trusted by server: localhost

$ lxc remote switch localhost
$ lxc stop <tab>
# nothing is suggested

In the last command, a1 should be suggested.

Additional information:

# snap list lxd
Name  Version      Rev    Tracking     Publisher   Notes
lxd   git-b99d691  31623  latest/edge  canonical✓  -
@kadinsayani kadinsayani changed the title Tab completion doesn't work against non-local remotes Tab completion doesn't work against non-local remotes for lxc <action> commands Dec 12, 2024
@kadinsayani kadinsayani added this to the lxd-6.3 milestone Dec 12, 2024
@kadinsayani kadinsayani added the Bug Confirmed to be a bug label Dec 12, 2024
@kadinsayani
Copy link
Contributor

Another snap specific issue - continuing from your reproducer:

ubuntu@v1:~$ lxc __complete stop a
a1
localhost:
:6
Completion ended with directive: ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed to be a bug
Projects
None yet
Development

No branches or pull requests

2 participants