Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Jan 9, 2025
1 parent 05a7e54 commit fb43f87
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cmd/injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,16 @@ func (r *ResourceInjector) inject(in any) (out any) {
break
}
v := r.dict[match[2]]
if len(node) == len(match[0]) {
if len(node) > len(match[0]) {
node = strings.Replace(
node,
match[0],
r.string(v),
-1)
} else {
out = v
return
}
node = strings.Replace(
node,
match[0],
r.string(v),
-1)
}
out = node
default:
Expand Down

0 comments on commit fb43f87

Please sign in to comment.