From 11aa8146f5ca95077d9bc92d8773cf7007beb68f Mon Sep 17 00:00:00 2001 From: luisgulo Date: Sat, 8 Nov 2025 10:40:30 +0100 Subject: Adjust error message in execution output --- examples/remote-ping.yaml | 4 ++-- shflow.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/remote-ping.yaml b/examples/remote-ping.yaml index 075c628..b75350e 100644 --- a/examples/remote-ping.yaml +++ b/examples/remote-ping.yaml @@ -1,8 +1,8 @@ tasks: - - name: Verificar acceso a gateway desde web01 + - name: Verificar acceso a target desde host indicado module: ping args: - target: 192.168.1.12 + target: 192.168.1.104 count: 4 timeout: 5 become: true diff --git a/shflow.sh b/shflow.sh index a5fb993..38739d0 100755 --- a/shflow.sh +++ b/shflow.sh @@ -135,14 +135,14 @@ while [[ $# -gt 0 ]]; do exit 0 ;; *) $PROJECT_ROOT/core/utils/eg.sh "$@" - echo "$(render_msg "${tr[unknown_option]:-❌ Opción desconocida: {opt}}" "opt=$1")" + echo "$(render_msg "${tr[unknown_option]:-❌ Opción desconocida: {opt}" "opt=$1")" exit 1 ;; esac done # 📋 Validación de playbook [ -z "$PLAYBOOK" ] && echo "${tr[no_playbook]:-❌ Playbook no especificado. Usa -f }" && exit 1 -[ ! -f "$PLAYBOOK" ] && echo "$(render_msg "${tr[playbook_not_found]:-❌ Playbook no encontrado: {file}}" "file=$PLAYBOOK")" && exit 1 +[ ! -f "$PLAYBOOK" ] && echo "$(render_msg "${tr[playbook_not_found]:-❌ Playbook no encontrado: {file}" "file=$PLAYBOOK")" && exit 1 TASKS_JSON=$($YQ_BIN eval -o=json '.tasks' "$PLAYBOOK") -- cgit v1.2.3