Skip to content

Commit

Permalink
aws_emr_cluster: Fix bootstrap action parameter ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
ddcprg authored and catsby committed Apr 12, 2017
1 parent e3e6f90 commit 6c9b832
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions builtin/providers/aws/resource_aws_emr_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,9 @@ func resourceAwsEMRCluster() *schema.Resource {
Required: true,
},
"args": {
Type: schema.TypeSet,
Type: schema.TypeList,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Set: schema.HashString,
},
},
},
Expand Down Expand Up @@ -699,7 +698,7 @@ func expandBootstrapActions(bootstrapActions []interface{}) []*emr.BootstrapActi
actionAttributes := raw.(map[string]interface{})
actionName := actionAttributes["name"].(string)
actionPath := actionAttributes["path"].(string)
actionArgs := actionAttributes["args"].(*schema.Set).List()
actionArgs := actionAttributes["args"].([]interface{})

action := &emr.BootstrapActionConfig{
Name: aws.String(actionName),
Expand Down

0 comments on commit 6c9b832

Please sign in to comment.