From bd52dcb28c365f04948bd387368e63aa2d1553ab Mon Sep 17 00:00:00 2001 From: Joseph Sirianni Date: Thu, 8 Aug 2024 09:30:20 -0400 Subject: [PATCH] fix(bindplane_configuration): Lack of rollout options should not cause a change during apply (#114) --- provider/resource_configuration.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/provider/resource_configuration.go b/provider/resource_configuration.go index cdcfe6e..dd27955 100644 --- a/provider/resource_configuration.go +++ b/provider/resource_configuration.go @@ -477,6 +477,10 @@ func resourceConfigurationRead(d *schema.ResourceData, meta any) error { // and sets them in the Terraform state. This will trigger a terraform apply if the // rollout options have changed outside of Terraform. func resourceConfigurationRolloutOptionsRead(d *schema.ResourceData, rollout model.ResourceConfiguration) error { + if len(rollout.Parameters) == 0 { + return nil + } + rolloutOptions := make(map[string]interface{}) rolloutOptions["type"] = rollout.Type