Exit code should be 0 for successful program completion
Bug #1703065 reported by
Adam Parsons
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bandit |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
https:/
Bandit should always return zero upon successful program completion. If a non-zero exit code is returned, it indicates an unsuccessful program completion in a general sense.
description: | updated |
To post a comment you must log in.
This is intentional so that we can inspect the error code in CI. Returning
0 regardless forces the calling automation to parse results to find out if
there are findings.
On Fri, Jul 7, 2017, 8:00 PM Adam Parsons <email address hidden> wrote:
> Public bug reported: /github. com/openstack/ bandit/ blob/master/ bandit/ cli/main. py#L346 /github. com/openstack/ bandit/ blob/master/ bandit/ cli/main. py#L346 /bugs.launchpad .net/bugs/ 1703065 /github. com/openstack/ bandit/ blob/master/ bandit/ cli/main. py#L346 /bugs.launchpad .net/bandit/ +bug/1703065/ +subscriptions
>
> https:/
>
> Bandit should always return zero upon successful program completion. If
> a non-zero exit code is returned, it indicates an unsuccessful program
> completion in a general sense.
>
> ** Affects: bandit
> Importance: Undecided
> Status: New
>
> ** Description changed:
>
> https:/
>
> - Bandit should always return 0 upon successful program completion. If a
> - non-zero exit code is returned, it indicates an unsuccessful program
> + Bandit should always return zero upon successful program completion. If
> + a non-zero exit code is returned, it indicates an unsuccessful program
> completion in a general sense.
>
> --
> You received this bug notification because you are subscribed to Bandit.
> https:/
>
> Title:
> Exit code should be 0 for successful program completion
>
> Status in Bandit:
> New
>
> Bug description:
> https:/
>
> Bandit should always return zero upon successful program completion.
> If a non-zero exit code is returned, it indicates an unsuccessful
> program completion in a general sense.
>
> To manage notifications about this bug go to:
> https:/
>