]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Use inactive definition when removing disk from config
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Jan 2014 16:58:47 +0000 (17:58 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 8 Jan 2014 08:47:44 +0000 (09:47 +0100)
commitf9d06ebcef9faffc085bab68968b8bb78f49f2d0
tree58576e6c3393a234745d0a53e31cd35c778fff9f
parent0bb64df1fcbf8248d8b71c44c8c882ae7b17d846
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.
tools/virsh-domain.c