]> gitweb.fluxo.info Git - hydra.git/commitdiff
Deploy: fqdn check fix
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 24 Jun 2016 15:38:44 +0000 (12:38 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 24 Jun 2016 15:38:44 +0000 (12:38 -0300)
doc/todo.rst
lib/hydra/deploy

index 67f4d66bb6063c908df8830a4dc3b7d5f501d5d1..9c579a9285e064649b4d17226d0d662264322477 100644 (file)
@@ -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).
index ceacc3e6820f92ab9dca8d1535894ba088a5ac2e..333f18380d50db78682f0e3f98369720468a351d 100644 (file)
@@ -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