aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-31 09:14:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-31 09:14:01 -0300
commit3719691aadbf7710840f30278f017139ff62d144 (patch)
tree7ad56b5a753395e99175a38badfffd1b9afd1694 /share
parentff22a6d448516aaacd13a8268267bf886c2d8309 (diff)
downloadhydra-3719691aadbf7710840f30278f017139ff62d144.tar.gz
hydra-3719691aadbf7710840f30278f017139ff62d144.tar.bz2
Deploy: localhost fix
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/deploy2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index 002cc95..ec4153f 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -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