Skip to content

Commit

Permalink
Read patch_mode in resourceLinuxVirtualMachineRead
Browse files Browse the repository at this point in the history
  • Loading branch information
atombrella committed Nov 4, 2021
1 parent 7f4980a commit 6e1d9f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/services/compute/linux_virtual_machine_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +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)
}
}

if err := d.Set("secret", flattenLinuxSecrets(profile.Secrets)); err != nil {
Expand Down

0 comments on commit 6e1d9f3

Please sign in to comment.