From 9004d3004b92d33a968240b90a3b705ec9ef6c61 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 11 May 2016 11:31:53 +0200 Subject: [PATCH] =?UTF-8?q?Sur=20le=20module=20hapy-master=20il=20ne=20fau?= =?UTF-8?q?t=20pas=20joindre=20l'h=C3=B4te=20local=20au=20cluster?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #16117 --- postservice/30-one-mng | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/postservice/30-one-mng b/postservice/30-one-mng index a288e72..f02aeca 100755 --- a/postservice/30-one-mng +++ b/postservice/30-one-mng @@ -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