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
tombuildsstuff authored Nov 19, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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"
@@ -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
}
}

0 comments on commit 9f20fc7

Please sign in to comment.