Skip to content

Commit

Permalink
/ completions: incus: stifle errors from incus, gives if not configured
Browse files Browse the repository at this point in the history
maybe the node isn't prepared, and then incus gives out a helpful
suggestion which we do not want to see.  actually the exit code is still
good though so this has the effect of (1) making it more safe, and (2)
stifling the warning if incus isn't configured yet

we will definitely have to move this out of every host doing it
eventually and have some way to select which hosts this gets run on, but
at the moment we are working on incus frequently so we will give it an
activation command later once we're not working on it so much anymore
  • Loading branch information
smemsh committed Sep 22, 2024
1 parent 0b7eaba commit 6006ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.d/completions
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ shell_init_completions_incus ()
{
if [[ $(type -P incus) ]]
then
source <(incus completion bash)
complete -o default -F __start_incus incus sincus inc
source <(incus completion bash) &>/dev/null \
&& complete -o default -F __start_incus incus sincus inc
fi
}

Expand Down

0 comments on commit 6006ede

Please sign in to comment.