S1034: assigning the result of this type assertion to a variable
S1034: assigning the result of this type assertion to a variable

(switch err := err.(type)) could eliminate type assertions in switch cases

dmacvicar/terraform-provider-libvirt,dmacvicar/terraform-provider-libvirt,dmacvicar/terraform-provider-libvirt