Provide default python path
When doing an upgrade, the master scripts library is loaded into memory and used when bootstrapping the previous version's ansible. The get_pip therefore fails due to not being given the path to the python to use. This patch ensures that the get_pip function has a default to prevent the unbound variable error. Change-Id: I78ab63a7e693fcd89026a1d726ec3354653accea
This commit is contained in:
parent
7499771822
commit
2e8e68efed
@ -197,7 +197,7 @@ function get_pip {
|
||||
|
||||
# The python executable to use when executing get-pip is passed
|
||||
# as a parameter to this function.
|
||||
GETPIP_PYTHON_EXEC_PATH="${1}"
|
||||
GETPIP_PYTHON_EXEC_PATH="${1:-$(which python)}"
|
||||
|
||||
# Download the get-pip script using the primary or secondary URL
|
||||
GETPIP_CMD="curl --silent --show-error --retry 5"
|
||||
|
Loading…
x
Reference in New Issue
Block a user