Skip to content

Commit b29a3ed

Browse files
committed
Use camel case name in SpecIdentifierField
In `crd.go.tpl` `field.Names.Camel` is used this results in `replicationGroupID` rather than `replicationGroupId`. Updating this method to be consistent with `crd.go.tpl` and to unblock elasticache code generation.
1 parent 52436cc commit b29a3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/model/crd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ func (r *CRD) SpecIdentifierField() *string {
365365
}
366366
for memberName := range r.SpecFields {
367367
if util.InStrings(memberName, lookup) {
368-
return &memberName
368+
return &r.SpecFields[memberName].Names.Camel
369369
}
370370
}
371371
return nil

0 commit comments

Comments
 (0)