question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need a way to configure exit codes

See original GitHub issue

https://github.com/aws-cloudformation/cfn-python-lint/blob/0ad76abe7dbd33dc404cd1cedd85c9643822d347/src/cfnlint/core.py#L55-L66

I’m not finding a way to non-zero exit on Errors only. Currently, based on the logic above, an informational message will trigger a non-zero exit code (8). Working around this in CICD pipelines is frustrating. A way to say --non-zero-exit-code ERROR would be splendid.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
kddejongcommented, Jun 12, 2020

I think the only trick here is if someone wants to see the messages but change the exit code. I’m glad the --ignore-checks W works in this case.

1reaction
kddejongcommented, Oct 31, 2022

Wrong #. Updated now. The workarounds above will work for you and release v0.90.0 has a new way to configure exit codes.

You can look at #2460 to see the readme updates on how to use it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linux and Unix exit code tutorial with examples - George Ornbo
To set an exit code in a script use exit 0 where 0 is the number you want to return. In the following...
Read more >
Bash command line exit codes demystified | Enable Sysadmin
In this article, I explain the handful of reserved error codes, how they can occur, and how to use them to figure out...
Read more >
Need a way to configure exit codes · Issue #1586 - GitHub
I'm not finding a way to non-zero exit on Errors only. Currently, based on the logic above, an informational message will trigger a...
Read more >
Exit codes to configure/make/make install - Stack Overflow
In my company we have to manually configure and install apaches. So I'm working in a script to automatically install it. ... I...
Read more >
How to configure the handling of exit codes by jobs
Without API · Set the job attribute stop_on_error to the value no · Add command for exit code 1: <modify_job job="/test/call_test" cmd="stop"/> ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found