From bb873d81289eb21f67d1da1fa4d2efc204bd0dd5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 12 Dec 2017 18:18:01 -0200 Subject: Deploy: use hostname cmd instead of facter --- share/hydra/deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/hydra/deploy b/share/hydra/deploy index 4b07512..093b723 100755 --- a/share/hydra/deploy +++ b/share/hydra/deploy @@ -139,9 +139,9 @@ for node in $NODES; do exit 1 fi - if [ "\$(facter fqdn)" != "$FQDN" ]; then + if [ "\$(hostname)" != "$FQDN" ]; then echo "FQDN does not match:" - echo "Remote presents itself as \$(facter fqdn) instead of $FQDN" + echo "Remote presents itself as \$(hostname) instead of $FQDN" exit 1 fi -- cgit v1.2.3