[node-patches] Change in ovirt-node[master]: init: http/https in management_server
dougsland at redhat.com
dougsland at redhat.com
Fri Aug 22 03:15:17 UTC 2014
Douglas Schilling Landgraf has uploaded a new change for review.
Change subject: init: http/https in management_server
......................................................................
init: http/https in management_server
As we do use the address and port to communicate with engine,
strip http/https in the management_server string.
The logic is if not port is set in management_server we do use 443.
Change-Id: Ibdc18d1824a7fe96d3452d7e80b419e1f94a9eac
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1128722
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/93/31793/1
diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index c76742d..4d6ed02 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -887,6 +887,9 @@
value=$(ptr $p)
if [ -n "$value" -o $p = 'init' -o $p = 'upgrade' -o $p = 'install' ]; then
log "Updating OVIRT_$PARAM to '$value'"
+ if [[ ${PARAM} == "MANAGEMENT_SERVER" ]]; then
+ value=`echo ${value} | sed 's/http\(\|s\):\/\///g'`
+ fi
if [[ ${PARAM} == "MANAGEMENT_SERVER" && ${value} == *:* ]]; then
MGMSERVER=${value%:*}
MGMPORT=${value#*:}
--
To view, visit http://gerrit.ovirt.org/31793
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibdc18d1824a7fe96d3452d7e80b419e1f94a9eac
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>
More information about the node-patches
mailing list