Skip to content

Commit

Permalink
Fix nonintentional if case
Browse files Browse the repository at this point in the history
Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
  • Loading branch information
sergenyalcin committed Dec 26, 2023
1 parent eb239f4 commit 6a56e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func (f *Field) AddToResource(g *Builder, r *resource, typeNames *TypeNames, add
// an earlier step, so they cannot be included as well. Plus probably they
// should also not change for Create and Update steps.
func (f *Field) isInit() bool {
return !f.Identifier && f.TFTag != "-"
return !f.Identifier && (f.TFTag != "-" || f.Injected)
}

func getDescription(s string) string {
Expand Down

0 comments on commit 6a56e73

Please sign in to comment.