Skip to content

Commit b66434a

Browse files
committed
fix(opensearch) make datasource schema match resource schema
Acceptance tests failed because of tls_protocols being a list.
1 parent 5c52e10 commit b66434a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

stackit/internal/services/opensearch/instance/datasource.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaReques
8282
"plugins": "List of plugins to install. Must be a supported plugin name. The plugins `repository-s3` and `repository-azure` are enabled by default and cannot be disabled.",
8383
"syslog": "List of syslog servers to send logs to.",
8484
"tls_ciphers": "List of TLS ciphers to use.",
85-
"tls_protocols": "The TLS protocol to use.",
85+
"tls_protocols": "List of TLS protocols to use.",
8686
}
8787

8888
resp.Schema = schema.Schema{
@@ -181,7 +181,8 @@ func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaReques
181181
Description: parametersDescriptions["tls_ciphers"],
182182
Computed: true,
183183
},
184-
"tls_protocols": schema.StringAttribute{
184+
"tls_protocols": schema.ListAttribute{
185+
ElementType: types.StringType,
185186
Description: parametersDescriptions["tls_protocols"],
186187
Computed: true,
187188
},

0 commit comments

Comments
 (0)