Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count failed catalog compilations? #17

Open
jyaworski opened this issue Dec 11, 2015 · 0 comments
Open

Count failed catalog compilations? #17

jyaworski opened this issue Dec 11, 2015 · 0 comments

Comments

@jyaworski
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant