provider/azurerm: arm_virtual_machine panic fix

This commit is contained in:
stack72 2016-12-07 11:22:39 +01:00
parent b75b839b2c
commit 8bd20c004b
No known key found for this signature in database
GPG Key ID: 8619A619B085CB16
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ func resourceArmVirtualMachineCreate(d *schema.ResourceData, meta interface{}) e
StorageProfile: &storageProfile,
}
if v, ok := d.GetOk(""); ok {
if v, ok := d.GetOk("license_type"); ok {
license := v.(string)
properties.LicenseType = &license
}