From 43a655c312de0c2f9bd0b053f3e0a0c5ef64476e Mon Sep 17 00:00:00 2001 From: Edgar Magana Date: Wed, 17 Apr 2013 15:11:04 -0700 Subject: [PATCH] Parameterized configuration variables for PLUMgrid plugin Fixes bug 1171028 Change-Id: Ie60ef8903001913996e265917c449bdce1e5aae9 --- lib/quantum_plugins/plumgrid | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/quantum_plugins/plumgrid b/lib/quantum_plugins/plumgrid index b49aa92af2..912aa7ed80 100644 --- a/lib/quantum_plugins/plumgrid +++ b/lib/quantum_plugins/plumgrid @@ -25,8 +25,10 @@ function quantum_plugin_configure_common() { } function quantum_plugin_configure_service() { - iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server localhost - iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server_port 7766 + PLUMGRID_NOS_IP=${PLUMGRID_NOS_IP:-localhost} + PLUMGRID_NOS_PORT=${PLUMGRID_NOS_PORT:-7766} + iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server $PLUMGRID_NOS_IP + iniset /$Q_PLUGIN_CONF_FILE PLUMgridNOS nos_server_port $PLUMGRID_NOS_PORT } function quantum_plugin_configure_debug_command() {