From fac7384b484b8cb4f8db68681bf4a7ac7867b991 Mon Sep 17 00:00:00 2001
From: Riccardo Pittau <elfosardo@gmail.com>
Date: Tue, 12 Mar 2019 17:11:48 +0100
Subject: [PATCH] Fixing a bash test in devstack ironic lib

This patch corrects the syntax of a test inside the devstack
ironic lib.

Change-Id: Id3e6b005a99235589cea4db4cc96c23fd8fe703a
---
 devstack/lib/ironic | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devstack/lib/ironic b/devstack/lib/ironic
index 707f3b5845..178129b184 100644
--- a/devstack/lib/ironic
+++ b/devstack/lib/ironic
@@ -520,7 +520,7 @@ fi
 
 # TODO(pas-ha) find a way to (cross-)sign the custom CA bundle used by tls-proxy
 # with default iPXE cert - for reference see http://ipxe.org/crypto
-if [ $IRONIC_IPXE_USE_SWIFT == 'True' && is_service_enabled tls-proxy ]; then
+if is_service_enabled tls-proxy && [[ "$IRONIC_IPXE_USE_SWIFT" == "True" ]]; then
     die $LINENO "Ironic in DevStack does not yet support booting iPXE from HTTPS URLs"
 fi