]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fixes hydra_get_fqdn_from_nodename
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Dec 2016 16:26:12 +0000 (14:26 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 20 Dec 2016 16:26:12 +0000 (14:26 -0200)
lib/hydra/misc

index 08231489aaccd8f5e570b44e979eda4b14d2cbf1..89e0aa019cd07db341b9dc8863d91a68eb129b7a 100644 (file)
@@ -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`