Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/polycubectl/completion/polycubectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ parse_yaml() {
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
. /usr/share/bash-completion/bash_completion

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

_polycubectl_completions() {
Expand All @@ -33,7 +32,7 @@ _polycubectl_completions() {
fi

BASE_URL=${POLYCUBECTL_URL:-$config_url}
BASE_URL=${BASE_URL:-BASE_URL_}
BASE_URL=${BASE_URL:-$BASE_URL_}
local cur prev
_get_comp_words_by_ref -n ":,=" cur prev
local words
Expand Down