virsh: Use inactive definition when removing disk from config
virsh: Use inactive definition when removing disk from config

https://bugzilla.redhat.com/show_bug.cgi?id=1049529

The 'detach-disk' command in virsh used the active XML definition of a
domain even when attempting to remove a disk from the config only. If
the disk was only in the inactive definition the operation failed. Fix
this by using the inactive XML in case that only the config is affected.

rlaager/libvirt,libvirt/libvirt,datto/libvirt,shugaoye/libvirt,nertpinx/libvirt,agx/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,agx/libvirt,rlaager/libvirt,elmarco/libvirt,agx/libvirt,eskultety/libvirt,datto/libvirt,nertpinx/libvirt,shugaoye/libvirt,taget/libvirt,zippy2/libvirt,VenkatDatta/libvirt,taget/libvirt,eskultety/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,crobinso/libvirt,jardasgit/libvirt,agx/libvirt,VenkatDatta/libvirt,rlaager/libvirt,agx/libvirt,elmarco/libvirt,jfehlig/libvirt,taget/libvirt,libvirt/libvirt,jardasgit/libvirt,shugaoye/libvirt,shugaoye/libvirt,andreabolognani/libvirt,rlaager/libvirt,zippy2/libvirt,datto/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,datto/libvirt,fabianfreyer/libvirt,taget/libvirt,olafhering/libvirt,olafhering/libvirt,libvirt/libvirt,datto/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,libvirt/libvirt,crobinso/libvirt,nertpinx/libvirt,eskultety/libvirt,zippy2/libvirt,olafhering/libvirt,andreabolognani/libvirt,elmarco/libvirt,rlaager/libvirt,crobinso/libvirt,crobinso/libvirt,jfehlig/libvirt,shugaoye/libvirt,zippy2/libvirt,nertpinx/libvirt,jardasgit/libvirt,eskultety/libvirt,olafhering/libvirt,eskultety/libvirt,nertpinx/libvirt,jardasgit/libvirt,elmarco/libvirt,VenkatDatta/libvirt,taget/libvirt,elmarco/libvirt