Skip to content

Commit

Permalink
Fix acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
atombrella committed Nov 5, 2021
1 parent 80f14a4 commit 52a80f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/services/compute/linux_virtual_machine_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,9 @@ func resourceLinuxVirtualMachineRead(d *pluginsdk.ResourceData, meta interface{}
if err := d.Set("admin_ssh_key", pluginsdk.NewSet(SSHKeySchemaHash, *flattenedSSHKeys)); err != nil {
return fmt.Errorf("setting `admin_ssh_key`: %+v", err)
}
if patchSettings := config.PatchSettings; patchSettings != nil {
d.Set("patch_mode", patchSettings.PatchMode)
patchSettings := config.PatchSettings
if patchSettings != nil && patchSettings.PatchMode != "" {
d.Set("patch_mode", compute.LinuxVMGuestPatchMode(patchSettings.PatchMode))
}
}

Expand Down

0 comments on commit 52a80f7

Please sign in to comment.