Hello:
I noticed that the puppet check doesn't check for failed runs of the form:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
If we change the awk calls in the variables, we could then check for NR != 1; in such runs, the failure parameter isn't even in the file.
[root@host state]# grep failure last_run_summary.yaml
failure: 0
[root@host state]# awk -v count=0 '/failure:/ {count++; count+=$2} END{print count}' last_run_summary.yaml
1
Hello:
I noticed that the puppet check doesn't check for failed runs of the form:
Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping runIf we change the awk calls in the variables, we could then check for NR != 1; in such runs, the failure parameter isn't even in the file.