Inability to find bandit.yaml when running in virtualenv

Bug #1484757 reported by Eric Brown
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bandit
Fix Released
High
Eric Brown

Bug Description

When running bandit without the '-c' parameter, it has the inability to find bandit.yaml within a virtualenv.

[bandit] ERROR no config found - tried: ./bandit.yaml, /home/ericwb/.config/bandit/bandit.yaml, /etc/bandit/bandit.yaml, /usr/local/etc/bandit/bandit.yaml

Eric Brown (ericwb)
Changed in bandit:
assignee: nobody → Eric Brown (ericwb)
importance: Undecided → High
Changed in bandit:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to bandit (master)

Reviewed: https://review.openstack.org/212896
Committed: https://git.openstack.org/cgit/openstack/bandit/commit/?id=8cecf885648c7360790a68ce187313f212fe421e
Submitter: Jenkins
Branch: master

commit 8cecf885648c7360790a68ce187313f212fe421e
Author: Eric Brown <email address hidden>
Date: Thu Aug 13 18:39:17 2015 -0700

    Find bandit.yaml when in virtualenv

    When running bandit without the '-c' parameter, it has the inability
    to find bandit.yaml within a virtualenv.

    This patch detects if running in a virtualenv and prepends that path
    to an appropriate location of bandit.yaml (depending on platform).

    Change-Id: I6b7faa8f4eefd91c9fff9da47dc1074075ad9494
    Closes-Bug: #1484757

Changed in bandit:
status: In Progress → Fix Committed
Revision history for this message
Eric Brown (ericwb) wrote :

Fix released in 0.13.2

Changed in bandit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.