Skip to content

Commit

Permalink
Merge pull request #446 from Yelp/bug-fix/upgrade-logic-0-12
Browse files Browse the repository at this point in the history
bug fix: upgrading from v0.12-0.14 incorrectly handles exclude_regex
  • Loading branch information
domanchi authored Apr 8, 2021
2 parents bb65ce4 + 579c9cc commit e2a5e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions detect_secrets/core/upgrades/v0_12.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
def upgrade(baseline: Dict[str, Any]) -> None:
if 'exclude_regex' in baseline:
baseline['exclude'] = {
'files': None,
'lines': baseline.pop('exclude_regex'),
'files': baseline.pop('exclude_regex'),
'lines': None,
}

baseline['word_list'] = {
Expand Down

0 comments on commit e2a5e36

Please sign in to comment.