[libvirt] [PATCH 1/2] virsh: Don't use legacy API if --current is used on device hot(un)plug

2014-01-07 Thread Peter Krempa
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

Re: [libvirt] [PATCH 1/2] virsh: Don't use legacy API if --current is used on device hot(un)plug

2014-01-07 Thread Eric Blake
On 01/07/2014 10:12 AM, Peter Krempa wrote: 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.