Skip to content

Commit

Permalink
fix bug when updating objecttemplateparams
Browse files Browse the repository at this point in the history
  • Loading branch information
ericogr committed Oct 15, 2020
1 parent c542008 commit 7a3c3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/template.ericogr.github.com/commons.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (c *Common) UpdateSingleObjectByTemplate(obj otv1.Object, owners []metav1.O
}
} else {
if err == nil {
findObj.Object["spec"] = newObj.Object["spec"]
findObj.Object = newObj.Object
findObj.SetLabels(newObj.GetLabels())
findObj.SetAnnotations(newObj.GetAnnotations())
err := c.Client.Update(ctx, &findObj)
Expand Down

0 comments on commit 7a3c3a0

Please sign in to comment.