snapshot: fix logic bug in qemu undefine
snapshot: fix logic bug in qemu undefine

Commit 19f8c98 introduced VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA,
with the intent that omitting the flag makes undefine fail, and
including the flag deletes metadata.  But it used the wrong logic.
Also, hoist the transient domain sooner, so that we don't
accidentally remove metadata of a transient domain.

* src/qemu/qemu_driver.c (qemuDomainUndefineFlags): Check correct
flag value.

andreabolognani/libvirt,nertpinx/libvirt,dumbbell/libvirt,kantai/libvirt-vfork,crobinso/libvirt,olafhering/libvirt,warewolf/libvirt,rmarwaha/libvirt,danwent/libvirt-ovs,andreabolognani/libvirt,jardasgit/libvirt,trainstack/libvirt,jeckersb/libvirt,libvirt/libvirt,emaste/libvirt,jeckersb/libvirt,rmarwaha/libvirt1,usc-isi/libvirt,fabianfreyer/libvirt,iam-TJ/libvirt,siboulet/libvirt-openvz,trainstack/libvirt,novel/fbsd-libvirt,trainstack/libvirt,datto/libvirt,VenkatDatta/libvirt,dumbbell/libvirt,elmarco/libvirt,rmarwaha/libvirt,datto/libvirt,usc-isi/libvirt,usc-isi/libvirt,jeckersb/libvirt,foomango/libvirt,iam-TJ/libvirt,trainstack/libvirt,wiedi/libvirt,nertpinx/libvirt,wiedi/libvirt,iam-TJ/libvirt,danwent/libvirt-ovs,rmarwaha/libvirt1,andreabolognani/libvirt,rlaager/libvirt,taget/libvirt,soulxu/libvirt-xuhj,crobinso/libvirt,warewolf/libvirt,crobinso/libvirt,agx/libvirt,olafhering/libvirt,jfehlig/libvirt,emaste/libvirt,libvirt/libvirt,eskultety/libvirt,rmarwaha/libvirt,shugaoye/libvirt,datto/libvirt,usc-isi/libvirt,soulxu/libvirt-xuhj,novel/fbsd-libvirt,taget/libvirt,taget/libvirt,novel/fbsd-libvirt,eskultety/libvirt,bjzhang/libvirt,rmarwaha/libvirt1,elmarco/libvirt,jeckersb/libvirt,siboulet/libvirt-openvz,foomango/libvirt,agx/libvirt,cbosdo/libvirt,bjzhang/libvirt,foomango/libvirt,zippy2/libvirt,rlaager/libvirt,rmarwaha/libvirt,jfehlig/libvirt,foomango/libvirt,rlaager/libvirt,elmarco/libvirt,novel/fbsd-libvirt,foomango/libvirt,agx/libvirt,jfehlig/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt,VenkatDatta/libvirt,eskultety/libvirt,rmarwaha/libvirt1,VenkatDatta/libvirt,rmarwaha/libvirt1,emaste/libvirt,shugaoye/libvirt,cbosdo/libvirt,iam-TJ/libvirt,rmarwaha/libvirt,zhlcindy/libvirt-1.1.4-maintain,dumbbell/libvirt,andreabolognani/libvirt,leilihh/libvirt,novel/fbsd-libvirt,jardasgit/libvirt,usc-isi/libvirt,jardasgit/libvirt,libvirt/libvirt,kantai/libvirt-vfork,olafhering/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jeckersb/libvirt,novel/fbsd-libvirt,novel/fbsd-libvirt,shugaoye/libvirt,libvirt/libvirt,crobinso/libvirt,soulxu/libvirt-xuhj,jeckersb/libvirt,jfehlig/libvirt,trainstack/libvirt,dumbbell/libvirt,eskultety/libvirt,trainstack/libvirt,nertpinx/libvirt,bjzhang/libvirt,soulxu/libvirt-xuhj,zhlcindy/libvirt-1.1.4-maintain,leilihh/libvirt,emaste/libvirt,warewolf/libvirt,andreabolognani/libvirt,datto/libvirt,datto/libvirt,leilihh/libvirt,zhlcindy/libvirt-1.1.4-maintain,kantai/libvirt-vfork,jardasgit/libvirt,soulxu/libvirt-xuhj,iam-TJ/libvirt,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,bjzhang/libvirt,cbosdo/libvirt,leilihh/libvirt,novel/fbsd-libvirt,VenkatDatta/libvirt,rmarwaha/libvirt,wiedi/libvirt,wiedi/libvirt,dumbbell/libvirt,zippy2/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,wiedi/libvirt,leilihh/libvirt,siboulet/libvirt-openvz,iam-TJ/libvirt,nertpinx/libvirt,zippy2/libvirt,nertpinx/libvirt,warewolf/libvirt,danwent/libvirt-ovs,dumbbell/libvirt,wiedi/libvirt,agx/libvirt,taget/libvirt,siboulet/libvirt-openvz,danwent/libvirt-ovs,agx/libvirt,elmarco/libvirt,kantai/libvirt-vfork,cbosdo/libvirt,kantai/libvirt-vfork,emaste/libvirt,rmarwaha/libvirt1,siboulet/libvirt-openvz,novel/fbsd-libvirt,rlaager/libvirt,warewolf/libvirt,emaste/libvirt,warewolf/libvirt,emaste/libvirt,zippy2/libvirt,rlaager/libvirt,warewolf/libvirt,wiedi/libvirt,shugaoye/libvirt,olafhering/libvirt,iam-TJ/libvirt,fabianfreyer/libvirt,elmarco/libvirt,eskultety/libvirt,bjzhang/libvirt,danwent/libvirt-ovs,leilihh/libvirt,cbosdo/libvirt,jeckersb/libvirt,trainstack/libvirt,fabianfreyer/libvirt