Skip to content

Commit

Permalink
fix acc test failure (#22867)
Browse files Browse the repository at this point in the history
Co-authored-by: Elena Xin <[email protected]>
  • Loading branch information
sinbai and sinbai authored Aug 9, 2023
1 parent 8622b09 commit f719908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/services/mysql/mysql_server_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,11 @@ func resourceMySqlServerCreate(d *pluginsdk.ResourceData, meta interface{}) erro
if !ok || v.(string) == "" {
return fmt.Errorf("restore_point_in_time must be set when create_mode is PointInTimeRestore")
}
time, _ := time.Parse(time.RFC3339, v.(string)) // should be validated by the schema
t, _ := time.Parse(time.RFC3339, v.(string)) // should be validated by the schema

props = &servers.ServerPropertiesForRestore{
SourceServerId: source,
RestorePointInTime: time.String(),
RestorePointInTime: t.Format(time.RFC3339),
InfrastructureEncryption: pointer.To(infraEncrypt),
PublicNetworkAccess: pointer.To(publicAccess),
MinimalTlsVersion: pointer.To(tlsMin),
Expand Down

0 comments on commit f719908

Please sign in to comment.