Code refactoring
Code refactoring

Got rid of useless lines and made the code more robust.

Signed-off-by: Flavio Castelli <d1035a58d87d0b7918844ad2fd699273faf2f5d5@suse.com>

dmacvicar/terraform-provider-libvirt,flavio/terraform-provider-libvirt,inercia/terraform-provider-libvirt,dmacvicar/terraform-provider-libvirt,deasmi/terraform-provider-libvirt,deasmi/terraform-provider-libvirt,dmacvicar/terraform-provider-libvirt,deasmi/terraform-provider-libvirt