log salt-relay responses for troubleshooting assistance

This commit is contained in:
Jason Ertel
2022-09-27 16:48:47 -04:00
parent 16d24d4bc9
commit 981371c72f

View File

@@ -109,7 +109,7 @@ function manage_user() {
esac esac
if [[ exit_code -eq 0 ]]; then if [[ exit_code -eq 0 ]]; then
log "Successful command execution" log "Successful command execution: $response"
$(echo "true" > "${SOC_PIPE}") $(echo "true" > "${SOC_PIPE}")
else else
log "Unsuccessful command execution: $response ($exit_code)" log "Unsuccessful command execution: $response ($exit_code)"
@@ -150,7 +150,7 @@ function manage_salt() {
esac esac
if [[ exit_code -eq 0 ]]; then if [[ exit_code -eq 0 ]]; then
log "Successful command execution" log "Successful command execution: $response"
$(echo "true" > "${SOC_PIPE}") $(echo "true" > "${SOC_PIPE}")
else else
log "Unsuccessful command execution: $response ($exit_code)" log "Unsuccessful command execution: $response ($exit_code)"