Page MenuHomeDevCentral

Prune salt autocomplete for shells
Closed, ResolvedPublic

Description

Salt autocomplete for bash/zsh/etc. requires Python 2. At such, it should not be installed anymore.

(anon):7: command not found: python2

Event Timeline

dereckson triaged this task as High priority.Sep 25 2024, 18:47
dereckson created this task.
dereckson renamed this task from Prunce salt autocomplete for shells to Prune salt autocomplete for shells.Sep 25 2024, 18:58

Culprit is salt_dir="${$(python2 -c 'import salt; print(salt.file);')%init*}"

We can report upstream or patch s/python2/python3 instead of rm, but I'm not sure it works at all.

Applied everywhere with salt '*' state.apply hotfixes/salt

Per previous comment, no need to hunt bash or fish completions.