From: Silvio Rhatto Date: Tue, 20 Dec 2016 16:26:12 +0000 (-0200) Subject: Fixes hydra_get_fqdn_from_nodename X-Git-Tag: 0.2.4~16 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0ea9022f39dfb41ca54ce0270651bc144bcd9126;p=hydra.git Fixes hydra_get_fqdn_from_nodename --- diff --git a/lib/hydra/misc b/lib/hydra/misc index 0823148..89e0aa0 100644 --- a/lib/hydra/misc +++ b/lib/hydra/misc @@ -155,9 +155,7 @@ function hydra_get_fqdn_from_nodename { if [ "$node" == "localhost" ]; then facter fqdn - fi - - if echo $node | grep -q '\.'; then + elif echo $node | grep -q '\.'; then echo $node else domain=`hydra $HYDRA config domain`