]> gitweb.fluxo.info Git - hydra.git/commitdiff
Deploy: localhost fix
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 12:14:01 +0000 (09:14 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 31 May 2018 12:14:01 +0000 (09:14 -0300)
share/hydra/deploy

index 002cc95d1abedcf5923cd77efec826f73445d6e4..ec4153f0f4a85a2ee7eb2b1d664bef9700a78e59 100755 (executable)
@@ -33,7 +33,7 @@ if [ -z "$NODES" ]; then
   NODES="`hydra $HYDRA nodes`"
 else
   # Check if first param is a node name, otherwise assume its a class
-  if [ -z "$2" ]; then
+  if [ -z "$2" ] && [ "$1" != "localhost" ]; then
     NODEFILE="$(basename `find $HYDRA_FOLDER/puppet/config/node/ -name $1'.*' | head -n 1` .yaml)"
 
     # Check for config/node name