Skip to content

Commit 8c7b24f

Browse files
committed
fix (managed databases) Reset avnadmin grafana password
1 parent 64cb8e8 commit 8c7b24f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ovh/types_cloud_project_database.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ func postCloudProjectDatabaseUser(ctx context.Context, d *schema.ResourceData, m
583583
return updateFunc(ctx, d, meta)
584584
}
585585
if engine == "grafana" && name != "avnadmin" {
586-
return fmt.Errorf("The Grafana engine does not allow to create a user resource other than avnadmin")
586+
return diag.FromErr(fmt.Errorf("The Grafana engine does not allow to create a user resource other than avnadmin"))
587587
}
588588

589589
serviceName := d.Get("service_name").(string)
@@ -606,7 +606,6 @@ func postCloudProjectDatabaseUser(ctx context.Context, d *schema.ResourceData, m
606606

607607
d.SetId(res.Id)
608608
return readFunc(ctx, d, meta)
609-
610609
}
611610

612611
func postFuncCloudProjectDatabaseUser(ctx context.Context, d *schema.ResourceData, meta interface{}, engine string, endpoint string, params interface{}, res *CloudProjectDatabaseUserResponse, timeout string) error {

0 commit comments

Comments
 (0)