Skip to content

Commit 7e2d3e6

Browse files
committed
Fix to use new Formation opts struct
1 parent 5c2615c commit 7e2d3e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

heroku/resource_heroku_formation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func resourceHerokuFormationCreate(d *schema.ResourceData, meta interface{}) err
110110
if v, ok := d.GetOk("size"); ok {
111111
vs := v.(string)
112112
log.Printf("[DEBUG] Size: %s", vs)
113-
opts.Size = &vs
113+
opts.DynoSize.Name = &vs
114114
}
115115

116116
quantity := d.Get("quantity").(int)
@@ -139,7 +139,7 @@ func resourceHerokuFormationUpdate(d *schema.ResourceData, meta interface{}) err
139139
if d.HasChange("size") {
140140
v := d.Get("size").(string)
141141
log.Printf("[DEBUG] New Size: %s", v)
142-
opts.Size = &v
142+
opts.DynoSize.Name = &v
143143
}
144144

145145
if d.HasChange("quantity") {

0 commit comments

Comments
 (0)