Skip to content

Commit

Permalink
Ensuing the parameters are a string prior to flattening (#2348)
Browse files Browse the repository at this point in the history
Fixes #2342
  • Loading branch information
tombuildsstuff authored Nov 19, 2018
1 parent a4deaf0 commit 9f20fc7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion azurerm/data_source_logic_app_workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package azurerm

import (
"fmt"
"log"

"github.com/Azure/azure-sdk-for-go/services/logic/mgmt/2016-06-01/logic"
"github.com/hashicorp/terraform/helper/schema"
Expand Down Expand Up @@ -95,7 +96,13 @@ func flattenLogicAppDataSourceWorkflowParameters(input map[string]*logic.Workflo

for k, v := range input {
if v != nil {
output[k] = v.Value.(string)
// we only support string parameters at this time
val, ok := v.Value.(string)
if !ok {
log.Printf("[DEBUG] Skipping parameter %q since it's not a string", k)
}

output[k] = val
}
}

Expand Down

0 comments on commit 9f20fc7

Please sign in to comment.