Skip to content

Commit

Permalink
Ignore specific error that returned by expandWildcard function
Browse files Browse the repository at this point in the history
Signed-off-by: Sergen Yalçın <[email protected]>
  • Loading branch information
sergenyalcin committed Dec 12, 2023
1 parent 77613fd commit 085ff0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/resource/sensitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ func GetSensitiveAttributes(from map[string]any, mapping map[string]string) (map
for tf := range mapping {
fieldPaths, err := paved.ExpandWildcards(tf)
if err != nil {
if fieldpath.IsNotFound(err) {
continue
}
return nil, errors.Wrap(err, errCannotExpandWildcards)
}

Expand Down

0 comments on commit 085ff0a

Please sign in to comment.