From 0ea9022f39dfb41ca54ce0270651bc144bcd9126 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 20 Dec 2016 14:26:12 -0200 Subject: Fixes hydra_get_fqdn_from_nodename --- lib/hydra/misc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') 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` -- cgit v1.2.3