[libvirt] [PATCH] parse container id in separate function