Skip to content

Commit

Permalink
Add support for opensearch
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Bhardwaj committed Apr 16, 2024
1 parent 5596a2a commit 9c35402
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions digitalocean/database/resource_database_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9c35402

Please sign in to comment.