Skip to content

Commit

Permalink
Run 'make fix-constants PKG=kafka'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jul 15, 2024
1 parent 9394829 commit b34fa2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/service/kafka/replicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func resourceReplicator() *schema.Resource {
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"type": {
names.AttrType: {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Expand Down Expand Up @@ -598,7 +598,7 @@ func flattenReplicationStartingPosition(apiObject *types.ReplicationStartingPosi
tfMap := map[string]interface{}{}

if v := apiObject.Type; v != "" {
tfMap["type"] = v
tfMap[names.AttrType] = v
}

return tfMap
Expand Down Expand Up @@ -813,7 +813,7 @@ func expandTopicReplication(tfMap map[string]interface{}) *types.TopicReplicatio
func expandReplicationStartingPosition(tfMap map[string]interface{}) *types.ReplicationStartingPosition {
apiObject := &types.ReplicationStartingPosition{}

if v, ok := tfMap["type"].(string); ok {
if v, ok := tfMap[names.AttrType].(string); ok {
apiObject.Type = types.ReplicationStartingPositionType(v)
}

Expand Down

0 comments on commit b34fa2a

Please sign in to comment.