]> gitweb.fluxo.info Git - hydra.git/commitdiff
Check for action at eyaml
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 12 May 2016 21:20:00 +0000 (18:20 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 12 May 2016 21:20:00 +0000 (18:20 -0300)
share/hydra/eyaml

index d6c020fcef600c733dd9509a0526255ca0c803ff..7a0df8c27d7893760b720bfe49694929dbf6c14d 100755 (executable)
@@ -23,6 +23,7 @@ hydra_config_load
 # Parameters
 BASENAME="`basename $0`"
 NODE="$1"
+ACTION="$2"
 FQDN="`hydra_get_fqdn_from_nodename $NODE`"
 shift
 
@@ -63,4 +64,6 @@ if [ ! -e "$PRIV" ]; then
 fi
 
 # Now call eyaml directly
-eyaml $* $ARGS
+if [ ! -z "$ACTION" ]; then
+  eyaml $* $ARGS
+fi