Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

Commit 3310fca

Browse files
committed
Application to AppID. Don't code at 5 AM.
1 parent 6ca413f commit 3310fca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resource_vultr_server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func resourceVultrServerCreate(d *schema.ResourceData, meta interface{}) error {
157157
Hostname: d.Get("hostname").(string),
158158
Tag: d.Get("tag").(string),
159159
Snapshot: d.Get("snapshot_id").(string),
160-
Application: d.Get("app_id").(string),
160+
AppID: d.Get("app_id").(string),
161161
Script: d.Get("script").(int),
162162
}
163163

@@ -189,7 +189,7 @@ func resourceVultrServerCreate(d *schema.ResourceData, meta interface{}) error {
189189
}
190190

191191
if attr, ok := d.GetOk("app_id"); ok {
192-
options.Application = attr.(string)
192+
options.AppID = attr.(string)
193193
if osId != 186 {
194194
return fmt.Errorf("os_id must equal 186 if app_id is set.")
195195
}

0 commit comments

Comments
 (0)