Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from rebuy-de/fix-filter
Browse files Browse the repository at this point in the history
Use complete string for filtering.
  • Loading branch information
Florian Zeidler authored Apr 20, 2017
2 parents 55700eb + 85c528c commit 621ec94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nuke.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (n *Nuke) Filter(item *Item) {
}

for _, filter := range filters {
if strings.HasPrefix(item.Resource.String(), filter) {
if filter == item.Resource.String() {
item.State = ItemStateFiltered
item.Reason = "filtered by config"
return
Expand Down

0 comments on commit 621ec94

Please sign in to comment.