From 9c35402b819d33597820ab28cb7679c7d255eda5 Mon Sep 17 00:00:00 2001 From: Rahul Bhardwaj Date: Tue, 16 Apr 2024 15:34:40 +0530 Subject: [PATCH] Add support for opensearch --- digitalocean/database/resource_database_cluster.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/digitalocean/database/resource_database_cluster.go b/digitalocean/database/resource_database_cluster.go index d207b8e65..0470e8a72 100644 --- a/digitalocean/database/resource_database_cluster.go +++ b/digitalocean/database/resource_database_cluster.go @@ -628,6 +628,15 @@ func setDatabaseConnectionInfo(database *godo.Database, d *schema.ResourceData) } } + if database.UIConnection != nil { + d.Set("host", database.UIConnection.Host) + d.Set("port", database.UIConnection.Port) + d.Set("uri", database.UIConnection.URI) + d.Set("database", database.UIConnection.Database) + d.Set("user", database.UIConnection.User) + d.Set("password", database.UIConnection.Password) + } + if database.PrivateConnection != nil { d.Set("private_host", database.PrivateConnection.Host) if database.EngineSlug == mongoDBEngineSlug {