From: Silvio Rhatto Date: Fri, 24 Jun 2016 15:38:44 +0000 (-0300) Subject: Deploy: fqdn check fix X-Git-Tag: 0.2.4~123 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=22a5da3bb6931d28ad47acb52ff28e0246e3364a;p=hydra.git Deploy: fqdn check fix --- diff --git a/doc/todo.rst b/doc/todo.rst index 67f4d66..9c579a9 100644 --- a/doc/todo.rst +++ b/doc/todo.rst @@ -6,5 +6,4 @@ TODO - deploy: - lockfile. - error handling. - - check hostname and required node configuration. - log applied version and date (in the node and in the repo). diff --git a/lib/hydra/deploy b/lib/hydra/deploy index ceacc3e..333f183 100644 --- a/lib/hydra/deploy +++ b/lib/hydra/deploy @@ -25,7 +25,7 @@ function hydra_deploy_setup { FQDN="$(basename `find $HYDRA_FOLDER/puppet/config/node/ -name $NODE'.*' | head -n 1` .yaml)" # Check for config/node name - if [ -z "$FQDN" ]; then + if [ "$FQDN" == ".yaml" ]; then echo "Cannot find config for $NODE." exit 1 fi