Fix Trove periodic CI job

Change-Id: Ib53308b33ce7e16ac0ff027f6af6635797ba5ae6
This commit is contained in:
Lingxian Kong 2019-12-21 23:24:03 +13:00
parent 27bdfcf753
commit 47605e6c13
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ function build_vm() {
# In dev mode, the trove guest agent needs to download trove code from
# trove-taskmanager host during service initialization.
if [[ "${dev_mode}" == "true" ]]; then
if [[ "${dev_mode,,}" == "true" ]]; then
host_ip=$(ip route get 8.8.8.8 | head -1 | awk '{print $7}')
export CONTROLLER_IP=${CONTROLLER_IP:-${host_ip}}
export PATH_TROVE=${PATH_TROVE}
@ -63,7 +63,7 @@ function build_vm() {
elementes="$elementes ${guest_os}"
if [[ "${dev_mode}" == "false" ]]; then
if [[ "${dev_mode,,}" == "false" ]]; then
elementes="$elementes pip-and-virtualenv"
elementes="$elementes pip-cache"
elementes="$elementes guest-agent"