Bug 1236313 - bandit cannot find the config file
Summary: bandit cannot find the config file
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: bandit
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michael S.
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-27 16:48 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2016-07-19 15:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 15:05:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2015-06-27 16:48:48 UTC
Description of problem:

$ bandit -r .
no config found, tried ...
        bandit.yaml
        /home/zbyszek/.config/bandit/bandit.yaml
        /usr/lib/python2.7/site-packages/bandit/config/bandit.yaml

Sorry, I missed this in review. I think it should be modified to find the config file in /etc/bandit, so it can work out of the box.

Comment 1 Michael S. 2015-06-27 17:46:12 UTC
Indeed, the file is in the place, but it seems the new version do not go look for it, so that's a bug upstream. I will take a look ater the weekend. 

But blocking the package to go in F22 for that is a bit annoying.

Comment 2 Michael S. 2015-06-27 18:06:33 UTC
So I found 2 commits :
http://git.openstack.org/cgit/stackforge/bandit/commit/?id=ac19bb5e9579f40381442d0dcb62071358ae7f5b

http://git.openstack.org/cgit/stackforge/bandit/commit/?id=5cc8b761f19922027b20f5caef124d1f850826de

One add some links. The other revert the change.

I guess I will just send a patch upstream to use /etc by default ( or /usr/local/etc ), or we should just drop it from /etc, but I do not like not respecting FHS on that one :/

Comment 3 Zbigniew Jędrzejewski-Szmek 2015-06-27 18:10:52 UTC
Yeah, no need to block the package... It's easy enough to work around.

Comment 4 Fedora End Of Life 2016-07-19 15:05:21 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.