Browse code

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

Luigi Toscano authored on 2016/09/22 02:39:36
Showing 1 changed files
... ...
@@ -317,7 +317,7 @@ function configure_tempest {
317 317
     # set the equiv validation option here as well to ensure they are
318 318
     # in sync. They shouldn't be separate options.
319 319
     iniset $TEMPEST_CONFIG validation connect_method $ssh_connect_method
320
-    if [[ ! $(is_service_enabled n-cell) && ! $(is_service_enabled neutron) ]]; then
320
+    if ! is_service_enabled n-cell && ! is_service_enabled neutron; then
321 321
         iniset $TEMPEST_CONFIG compute fixed_network_name $PRIVATE_NETWORK_NAME
322 322
     fi
323 323