Skip to content

Commit

Permalink
r/Logic App: ensuring parameters are strings prior to setting (hashic…
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff authored and torresdal committed Aug 31, 2018
1 parent 17ae627 commit 9d6911e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion azurerm/resource_arm_logic_app_workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,13 @@ func flattenLogicAppWorkflowParameters(input map[string]*logic.WorkflowParameter

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 9d6911e

Please sign in to comment.