aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-20 14:26:12 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-20 14:26:12 -0200
commit0ea9022f39dfb41ca54ce0270651bc144bcd9126 (patch)
tree545e9c34fbecd0ce6ebfb7d5e83fd4e29790d9a1 /lib
parente7d64405c8dc31b67b16795426480cae4d09a7cf (diff)
downloadhydra-0ea9022f39dfb41ca54ce0270651bc144bcd9126.tar.gz
hydra-0ea9022f39dfb41ca54ce0270651bc144bcd9126.tar.bz2
Fixes hydra_get_fqdn_from_nodename
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/misc4
1 files changed, 1 insertions, 3 deletions
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`