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