virsh: Don't use legacy API if --current is used on device hot(un)plug
virsh: Don't use legacy API if --current is used on device hot(un)plug

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

The legacy virDomainAttachDevice and virDomainDetachDevice operate only
on active domains. When a user specified --current flag with an inactive
domain the old API was used and reported an error. Fix it by calling the
new API if --current is specified explicitly.

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