Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/data-sources/database_mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The `linode_database_mysql` data source exports the following attributes:

* `host_primary` - The primary host for the Managed Database.

* `host_secondary` - The secondary/private network host for the Managed Database.
* `host_standby` - The standby/private network host for the Managed Database.

* `label` - A unique, user-defined string referring to the Managed Database.

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/database_mysql_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The `linode_database_mysql_v2` data source exports the following attributes:

* `host_primary` - The primary host for the Managed Database.

* `host_secondary` - The secondary/private host for the managed database.
* `host_standby` - The standby/private host for the managed database.

* `label` - A unique, user-defined string referring to the Managed Database.

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/database_postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The `linode_database_postgresql` data source exports the following attributes:

* `host_primary` - The primary host for the Managed Database.

* `host_secondary` - The secondary/private network host for the Managed Database.
* `host_standby` - The standby host for the Managed Database.

* `label` - A unique, user-defined string referring to the Managed Database.

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/database_postgresql_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The `linode_database_postgresql_v2` data source exports the following attributes

* `host_primary` - The primary host for the Managed Database.

* `host_secondary` - The secondary/private host for the managed database.
* `host_standby` - The standby/private host for the managed database.

* `label` - A unique, user-defined string referring to the Managed Database.

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Each engine will be stored in the `databases` attribute and will export the foll

* `host_primary` - The primary host for the Managed Database.

* `host_secondary` - The secondary/private network host for the Managed Database.
* `host_standby` - The standby/private network host for the Managed Database.

* `id` - The ID of the Managed Database.

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/database_mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ In addition to all arguments above, the following attributes are exported:

* `host_primary` - The primary host for the Managed Database.

* `host_secondary` - The secondary/private network host for the Managed Database.
* `host_standby` - The standby/private network host for the Managed Database.

* `root_password` - The randomly-generated root password for the Managed Database instance.

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/database_mysql_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ In addition to all arguments above, the following attributes are exported:

* `host_primary` - The primary host for the Managed Database.

* `host_secondary` - The secondary/private host for the managed database.
* `host_standby` - The standby/private host for the managed database.

* `pending_updates` - A set of pending updates.

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/database_postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ In addition to all arguments above, the following attributes are exported:

* `host_primary` - The primary host for the Managed Database.

* `host_secondary` - The secondary/private network host for the Managed Database.
* `host_standby` - The standby/private network host for the Managed Database.

* `root_password` - The randomly-generated root password for the Managed Database instance.

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/database_postgresql_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ In addition to all arguments above, the following attributes are exported:

* `host_primary` - The primary host for the Managed Database.

* `host_secondary` - The secondary/private host for the managed database.
* `host_standby` - The standby host for the Managed Database.

* `pending_updates` - A set of pending updates.

Expand Down
24 changes: 12 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.19.1
github.com/aws/aws-sdk-go-v2/service/s3 v1.88.3
github.com/aws/smithy-go v1.23.2
github.com/go-resty/resty/v2 v2.16.5
github.com/go-resty/resty/v2 v2.17.0
github.com/google/go-cmp v0.7.0
github.com/google/uuid v1.6.0
github.com/hashicorp/go-cty v1.5.0
Expand All @@ -27,12 +27,12 @@ require (
github.com/hashicorp/terraform-plugin-mux v0.21.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.38.1
github.com/hashicorp/terraform-plugin-testing v1.13.3
github.com/linode/linodego v1.61.0
github.com/linode/linodego v1.62.0
github.com/linode/linodego/k8s v1.25.2
github.com/stretchr/testify v1.11.1
golang.org/x/crypto v0.43.0
golang.org/x/net v0.46.0
golang.org/x/sync v0.17.0
golang.org/x/crypto v0.46.0
golang.org/x/net v0.48.0
golang.org/x/sync v0.19.0
)

require (
Expand Down Expand Up @@ -101,13 +101,13 @@ require (
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/zclconf/go-cty v1.17.0 // indirect
golang.org/x/mod v0.28.0 // indirect
golang.org/x/oauth2 v0.32.0 // indirect
golang.org/x/sys v0.37.0 // indirect
golang.org/x/term v0.36.0 // indirect
golang.org/x/text v0.30.0 // indirect
golang.org/x/time v0.6.0 // indirect
golang.org/x/tools v0.37.0 // indirect
golang.org/x/mod v0.30.0 // indirect
golang.org/x/oauth2 v0.34.0 // indirect
golang.org/x/sys v0.39.0 // indirect
golang.org/x/term v0.38.0 // indirect
golang.org/x/text v0.32.0 // indirect
golang.org/x/time v0.12.0 // indirect
golang.org/x/tools v0.39.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250707201910-8d1bb00bc6a7 // indirect
google.golang.org/grpc v1.75.1 // indirect
Expand Down
48 changes: 24 additions & 24 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2Kv
github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k=
github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g=
github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
github.com/go-resty/resty/v2 v2.16.5 h1:hBKqmWrr7uRc3euHVqmh1HTHcKn99Smr7o5spptdhTM=
github.com/go-resty/resty/v2 v2.16.5/go.mod h1:hkJtXbA2iKHzJheXYvQ8snQES5ZLGKMwQ07xAwp/fiA=
github.com/go-resty/resty/v2 v2.17.0 h1:pW9DeXcaL4Rrym4EZ8v7L19zZiIlWPg5YXAcVmt+gN0=
github.com/go-resty/resty/v2 v2.17.0/go.mod h1:kCKZ3wWmwJaNc7S29BRtUhJwy7iqmn+2mLtQrOyQlVA=
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI=
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls=
github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68=
Expand Down Expand Up @@ -195,8 +195,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/linode/linodego v1.61.0 h1:9g20NWl+/SbhDFj6X5EOZXtM2hBm1Mx8I9h8+F3l1LM=
github.com/linode/linodego v1.61.0/go.mod h1:64o30geLNwR0NeYh5HM/WrVCBXcSqkKnRK3x9xoRuJI=
github.com/linode/linodego v1.62.0 h1:eCo1sepsIPGkI66Cz9IaCylWxKDD2aSc5UYq20iBMfw=
github.com/linode/linodego v1.62.0/go.mod h1:FoIEsuZMRlXiUt6RnuGcPTek5iAO3VfE6bjMpGlcQ2U=
github.com/linode/linodego/k8s v1.25.2 h1:PY6S0sAD3xANVvM9WY38bz9GqMTjIbytC8IJJ9Cv23o=
github.com/linode/linodego/k8s v1.25.2/go.mod h1:DC1XCSRZRGsmaa/ggpDPSDUmOM6aK1bhSIP6+f9Cwhc=
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
Expand Down Expand Up @@ -288,30 +288,30 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.43.0 h1:dduJYIi3A3KOfdGOHX8AVZ/jGiyPa3IbBozJ5kNuE04=
golang.org/x/crypto v0.43.0/go.mod h1:BFbav4mRNlXJL4wNeejLpWxB7wMbc79PdRGhWKncxR0=
golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU=
golang.org/x/crypto v0.46.0/go.mod h1:Evb/oLKmMraqjZ2iQTwDwvCtJkczlDuTmdJXoZVzqU0=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.28.0 h1:gQBtGhjxykdjY9YhZpSlZIsbnaE2+PgjfLWUQTnoZ1U=
golang.org/x/mod v0.28.0/go.mod h1:yfB/L0NOf/kmEbXjzCPOx1iK1fRutOydrCMsqRhEBxI=
golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk=
golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.46.0 h1:giFlY12I07fugqwPuWJi68oOnpfqFnJIJzaIIm2JVV4=
golang.org/x/net v0.46.0/go.mod h1:Q9BGdFy1y4nkUwiLvT5qtyhAnEHgnQ/zd8PfU6nc210=
golang.org/x/oauth2 v0.32.0 h1:jsCblLleRMDrxMN29H3z/k1KliIvpLgCkE6R8FXXNgY=
golang.org/x/oauth2 v0.32.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU=
golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY=
golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw=
golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=
golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand All @@ -326,27 +326,27 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ=
golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.36.0 h1:zMPR+aF8gfksFprF/Nc/rd1wRS1EI6nDBGyWAvDzx2Q=
golang.org/x/term v0.36.0/go.mod h1:Qu394IJq6V6dCBRgwqshf3mPF85AqzYEzofzRdZkWss=
golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q=
golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/text v0.30.0 h1:yznKA/E9zq54KzlzBEAWn1NXSQ8DIp/NYMy88xJjl4k=
golang.org/x/text v0.30.0/go.mod h1:yDdHFIX9t+tORqspjENWgzaCVXgk0yYnYuSZ8UzzBVM=
golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U=
golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU=
golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY=
golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE=
golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.37.0 h1:DVSRzp7FwePZW356yEAChSdNcQo6Nsp+fex1SUW09lE=
golang.org/x/tools v0.37.0/go.mod h1:MBN5QPQtLMHVdvsbtarmTNukZDdgwdwlO5qGacAzF0w=
golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ=
golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
2 changes: 1 addition & 1 deletion linode/databasemysql/datasource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestAccDataSourceDatabaseMySQL_basic(t *testing.T) {
resource.TestCheckResourceAttrSet(resName, "ca_cert"),
resource.TestCheckResourceAttrSet(resName, "created"),
resource.TestCheckResourceAttrSet(resName, "host_primary"),
resource.TestCheckResourceAttrSet(resName, "host_secondary"),
resource.TestCheckResourceAttrSet(resName, "host_standby"),
resource.TestCheckResourceAttrSet(resName, "root_password"),
resource.TestCheckResourceAttr(resName, "status", "active"),
resource.TestCheckResourceAttrSet(resName, "updated"),
Expand Down
4 changes: 2 additions & 2 deletions linode/databasemysql/framework_datasource_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ var frameworkDatasourceSchema = schema.Schema{
Description: "The primary host for the Managed Database.",
Computed: true,
},
"host_secondary": schema.StringAttribute{
Description: "The secondary host for the Managed Database.",
"host_standby": schema.StringAttribute{
Description: "The standby host for the Managed Database.",
Computed: true,
},
"root_password": schema.StringAttribute{
Expand Down
4 changes: 2 additions & 2 deletions linode/databasemysql/framework_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type DataSourceModel struct {
Created types.String `tfsdk:"created"`
Engine types.String `tfsdk:"engine"`
HostPrimary types.String `tfsdk:"host_primary"`
HostSecondary types.String `tfsdk:"host_secondary"`
HostStandby types.String `tfsdk:"host_standby"`
RootPassword types.String `tfsdk:"root_password"`
Status types.String `tfsdk:"status"`
Updated types.String `tfsdk:"updated"`
Expand All @@ -42,7 +42,7 @@ func (data *DataSourceModel) parseMySQLDatabase(
data.Status = types.StringValue(string(db.Status))
data.Label = types.StringValue(string(db.Label))
data.HostPrimary = types.StringValue(string(db.Hosts.Primary))
data.HostSecondary = types.StringValue(string(db.Hosts.Secondary))
data.HostStandby = types.StringValue(string(db.Hosts.Standby))
data.Region = types.StringValue(string(db.Region))
data.Type = types.StringValue(string(db.Type))
data.Engine = types.StringValue(string(db.Engine))
Expand Down
6 changes: 3 additions & 3 deletions linode/databasemysql/framework_models_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func TestParseMySQLDatabase(t *testing.T) {
Status: "active",
Label: "example-db",
Hosts: linodego.DatabaseHost{
Primary: "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
Secondary: "lin-123-456-mysql-primary-private.servers.linodedb.net",
Primary: "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
Standby: "lin-123-456-mysql-primary-private.servers.linodedb.net",
},
Region: "us-east",
Type: "g6-dedicated-2",
Expand Down Expand Up @@ -50,7 +50,7 @@ func TestParseMySQLDatabase(t *testing.T) {
assert.Equal(t, types.StringValue("active"), data.Status)
assert.Equal(t, types.StringValue("example-db"), data.Label)
assert.Equal(t, types.StringValue("lin-123-456-mysql-mysql-primary.servers.linodedb.net"), data.HostPrimary)
assert.Equal(t, types.StringValue("lin-123-456-mysql-primary-private.servers.linodedb.net"), data.HostSecondary)
assert.Equal(t, types.StringValue("lin-123-456-mysql-primary-private.servers.linodedb.net"), data.HostStandby)
assert.Equal(t, types.StringValue("us-east"), data.Region)
assert.Equal(t, types.StringValue("g6-dedicated-2"), data.Type)

Expand Down
2 changes: 1 addition & 1 deletion linode/databasemysql/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func readResource(ctx context.Context, d *schema.ResourceData, meta interface{})
d.Set("ca_cert", string(cert.CACertificate))
d.Set("created", db.Created.Format(time.RFC3339))
d.Set("host_primary", db.Hosts.Primary)
d.Set("host_secondary", db.Hosts.Secondary)
d.Set("host_standby", db.Hosts.Standby)
d.Set("root_password", creds.Password)
d.Set("status", db.Status)
d.Set("updated", db.Updated.Format(time.RFC3339))
Expand Down
6 changes: 3 additions & 3 deletions linode/databasemysql/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestAccResourceDatabaseMySQL_basic(t *testing.T) {

resource.TestCheckResourceAttrSet(resName, "created"),
resource.TestCheckResourceAttrSet(resName, "host_primary"),
resource.TestCheckResourceAttrSet(resName, "host_secondary"),
resource.TestCheckResourceAttrSet(resName, "host_standby"),
resource.TestCheckResourceAttrSet(resName, "root_password"),
resource.TestCheckResourceAttr(resName, "status", "active"),
resource.TestCheckResourceAttrSet(resName, "updated"),
Expand Down Expand Up @@ -173,7 +173,7 @@ func TestAccResourceDatabaseMySQL_complex(t *testing.T) {
resource.TestCheckResourceAttrSet(resName, "ca_cert"),
resource.TestCheckResourceAttrSet(resName, "created"),
resource.TestCheckResourceAttrSet(resName, "host_primary"),
resource.TestCheckResourceAttrSet(resName, "host_secondary"),
resource.TestCheckResourceAttrSet(resName, "host_standby"),
resource.TestCheckResourceAttrSet(resName, "root_password"),
resource.TestCheckResourceAttr(resName, "status", "active"),
resource.TestCheckResourceAttrSet(resName, "updated"),
Expand Down Expand Up @@ -218,7 +218,7 @@ func TestAccResourceDatabaseMySQL_complex(t *testing.T) {
resource.TestCheckResourceAttrSet(resName, "ca_cert"),
resource.TestCheckResourceAttrSet(resName, "created"),
resource.TestCheckResourceAttrSet(resName, "host_primary"),
resource.TestCheckResourceAttrSet(resName, "host_secondary"),
resource.TestCheckResourceAttrSet(resName, "host_standby"),
resource.TestCheckResourceAttrSet(resName, "root_password"),
resource.TestCheckResourceAttr(resName, "status", "active"),
resource.TestCheckResourceAttrSet(resName, "updated"),
Expand Down
4 changes: 2 additions & 2 deletions linode/databasemysql/schema_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ var resourceSchema = map[string]*schema.Schema{
Description: "The primary host for the Managed Database.",
Computed: true,
},
"host_secondary": {
"host_standby": {
Type: schema.TypeString,
Description: "The secondary host for the Managed Database.",
Description: "The standby host for the Managed Database.",
Computed: true,
},
"root_password": {
Expand Down
Loading