Skip to content

Commit

Permalink
CCX-5008 empty parameters (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxynet authored Nov 19, 2024
1 parent d645ab6 commit 51f5169
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ clean:
rm -rf ./bin/terraform-provider-ccx

install: bin/terraform-provider-ccx
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/severalnines/ccx/0.3.1/linux_amd64
cp ./bin/terraform-provider-ccx ~/.terraform.d/plugins/registry.terraform.io/severalnines/ccx/0.3.1/linux_amd64/
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/severalnines/ccx/0.3.2/linux_amd64
cp ./bin/terraform-provider-ccx ~/.terraform.d/plugins/registry.terraform.io/severalnines/ccx/0.3.2/linux_amd64/

docs:
go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ terraform {
required_providers {
ccx = {
source = "severalnines/ccx"
version = "~> 0.3.1"
version = "~> 0.3.2"
}
}
}
Expand Down Expand Up @@ -164,7 +164,7 @@ Clone, build and place the plugin in the right folder.
1. Clone: `git clone https://github.com/severalnines/terraform-provider-ccx`
2. Build: `go build -o ./bin/terraform-provider-ccx.exe ./cmd/terraform-provider-ccx`
3. Place: `./bin/terraform-provider-ccx.exe`
as `%APPDATA%/terraform.d/plugins/registry.terraform.io/severalnines/ccx/0.3.1/windows_amd64/terraform-provider-ccx.exe`
as `%APPDATA%/terraform.d/plugins/registry.terraform.io/severalnines/ccx/0.3.2/windows_amd64/terraform-provider-ccx.exe`

## Using the provider

Expand All @@ -179,7 +179,7 @@ terraform {
required_providers {
ccx = {
source = "severalnines/ccx"
version = "~> 0.3.1"
version = "~> 0.3.2"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/example_datastore.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
ccx = {
source = "severalnines/ccx"
version = "~> 0.3.1"
version = "~> 0.3.2"
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions internal/ccx/api/datastore_dbparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func (svc *DatastoreService) GetParameters(ctx context.Context, storeID string)

parameters := make(map[string]string, len(rs.Parameters))
for k, v := range rs.Parameters {
if v.Value == "" { // not set, skip
continue
}

parameters[k] = v.Value
}

Expand Down

0 comments on commit 51f5169

Please sign in to comment.