Skip to content

Commit 7c75e4f

Browse files
authored
Merge pull request #97 from polycube-network/pr/fix_bash_completion
polycubectl: fix autocompletion
2 parents 84adaf7 + 8a63ca1 commit 7c75e4f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/polycubectl/completion/polycubectl.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ parse_yaml() {
2323
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
2424
. /usr/share/bash-completion/bash_completion
2525

26-
# TODO: Get this from configuration file and env variable
2726
BASE_URL_="http://localhost:9000/polycube/v1/"
2827

2928
_polycubectl_completions() {
@@ -33,7 +32,7 @@ _polycubectl_completions() {
3332
fi
3433

3534
BASE_URL=${POLYCUBECTL_URL:-$config_url}
36-
BASE_URL=${BASE_URL:-BASE_URL_}
35+
BASE_URL=${BASE_URL:-$BASE_URL_}
3736
local cur prev
3837
_get_comp_words_by_ref -n ":,=" cur prev
3938
local words

0 commit comments

Comments
 (0)