[libvirt] [PATCH 3/7] qemu: snapshot: Convert if-else switch to switch statement