Skip to content

Commit

Permalink
Merge pull request crossplane#312 from sergenyalcin/handle--notfound-…
Browse files Browse the repository at this point in the history
…error-type

Ignore specific error that returned by expandWildcard function
  • Loading branch information
sergenyalcin authored Dec 13, 2023
2 parents a46199f + 085ff0a commit cf1b346
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 cf1b346

Please sign in to comment.