Sur le module hapy-master il ne faut pas joindre l'hôte local au cluster

ref #16117
This commit is contained in:
Philippe Caseiro 2016-05-11 11:31:53 +02:00
parent fd17859138
commit 4f32b29ef8
1 changed files with 6 additions and 3 deletions

View File

@ -105,7 +105,7 @@ function get_cluster_id_by_name()
cmd="onecluster"
opt="show ${name}"
opt="list -l ID,NAME -f NAME=${name} --csv"
res=$(${cmd} ${opt} --user ${AUTH%:*} --password ${AUTH#*:} | awk -F ',' '/^[0-9]/ { print $1 }')
if [[ ${?} -eq 0 ]]
@ -431,8 +431,11 @@ function main()
#
# Creating Host
#
host=$(CreoleGet nom_machine)
manage_host ${host}
if [[ $(CreoleGet eole_module non) != 'hapy-master' ]]
then
host=$(CreoleGet nom_machine)
manage_host ${host}
fi
#
# Attaching Host to the Cluster