From 4c813ac0fb64c7b4eeec7f67692ccfd7affd2153 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Wed, 21 Sep 2016 19:39:36 +0200 Subject: [PATCH] Fix the logic of if used with is_service_enabled The value to be evaluated is the returned value, not the output of the command. Change-Id: I22d7c967e911bcfee6b1910f666dbbc647c00085 --- lib/tempest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tempest b/lib/tempest index b491bf82ef..048f3464b3 100644 --- a/lib/tempest +++ b/lib/tempest @@ -317,7 +317,7 @@ function configure_tempest { # set the equiv validation option here as well to ensure they are # in sync. They shouldn't be separate options. iniset $TEMPEST_CONFIG validation connect_method $ssh_connect_method - if [[ ! $(is_service_enabled n-cell) && ! $(is_service_enabled neutron) ]]; then + if ! is_service_enabled n-cell && ! is_service_enabled neutron; then iniset $TEMPEST_CONFIG compute fixed_network_name $PRIVATE_NETWORK_NAME fi