Skip to content

Commit

Permalink
parse server ID before setting state
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceharrison1984 committed Oct 2, 2024
1 parent 3484e8a commit a427e1e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,13 @@ func (r PostgresqlFlexibleServerVirtualEndpointResource) Read() sdk.ResourceFunc
}

state.SourceServerId = sourceServerId
state.ReplicaServerId = *replicaServer.Id

replicaId, err := servers.ParseFlexibleServerID(*replicaServer.Id)
if err != nil {
return err
}

state.ReplicaServerId = replicaId.ID()
}
}

Expand Down

0 comments on commit a427e1e

Please sign in to comment.