Inability to find bandit.yaml when running in virtualenv
Bug #1484757 reported by
Eric Brown
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/
Changed in bandit: | |
assignee: | nobody → Eric Brown (ericwb) |
importance: | Undecided → High |
Changed in bandit: | |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/212896 /git.openstack. org/cgit/ openstack/ bandit/ commit/ ?id=8cecf885648 c7360790a68ce18 7313f212fe421e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8cecf885648c736 0790a68ce187313 f212fe421e
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: I6b7faa8f4eefd9 1c9fff9da47dc10 74075ad9494
Closes-Bug: #1484757