Skip to content

Commit

Permalink
1. fix debug messages
Browse files Browse the repository at this point in the history
2. fix typos in test name
  • Loading branch information
patilpankaj212 committed Jan 8, 2021
1 parent ff73e3a commit 3fd3d95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/iac-providers/kubernetes/v1/normalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ func readSkipRulesFromAnnotations(annotations map[string]interface{}, resourceID
if value, ok := rule.(string); ok {
skipRules = append(skipRules, value)
} else {
zap.S().Debugf("rules in %s must be string", terrascanSkipRules)
zap.S().Debugf("each rule in %s must be of string type", terrascanSkipRules)
}
}
} else {
zap.S().Debugf("%s must be a slice of rules to skip", terrascanSkipRules)
zap.S().Debugf("%s must be an array of rules to skip", terrascanSkipRules)
}

return skipRules
Expand Down
4 changes: 2 additions & 2 deletions pkg/iac-providers/kubernetes/v1/normalize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ func TestK8sV1GetNormalizedName(t *testing.T) {
want string
}{
{
name: "normalized set for pod",
name: "normalized name for pod",
args: args{
kind: "pod",
},
want: "kubernetes_pod",
},
{
name: "normalized set for DaemonSet",
name: "normalized name for DaemonSet",
args: args{
kind: "DaemonSet",
},
Expand Down

0 comments on commit 3fd3d95

Please sign in to comment.