From 6dd534efe3a3824829b8a0ed842635c0bfcf795e Mon Sep 17 00:00:00 2001
From: Zhenguo Niu <niuzhenguo@huawei.com>
Date: Tue, 12 Jan 2016 17:26:43 +0800
Subject: [PATCH] Devstack: replace 'http' with SERVICE_PROTOCOL

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

diff --git a/devstack/lib/ironic b/devstack/lib/ironic
index 7788b1e5fa..16432411f4 100644
--- a/devstack/lib/ironic
+++ b/devstack/lib/ironic
@@ -115,7 +115,7 @@ IRONIC_DEPLOY_FLAVOR=${IRONIC_DEPLOY_FLAVOR:-ubuntu $IRONIC_DEPLOY_ELEMENT}
 IRONIC_BIN_DIR=$(get_python_exec_prefix)
 
 # Ironic connection info.  Note the port must be specified.
-IRONIC_SERVICE_PROTOCOL=http
+IRONIC_SERVICE_PROTOCOL=${IRONIC_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}
 IRONIC_SERVICE_PORT=${IRONIC_SERVICE_PORT:-6385}
 IRONIC_HOSTPORT=${IRONIC_HOSTPORT:-$SERVICE_HOST:$IRONIC_SERVICE_PORT}