]> xenbits.xensource.com Git - libvirt.git/commit
xml: print uuids in the warning
authorJán Tomko <jtomko@redhat.com>
Mon, 29 Oct 2012 12:15:55 +0000 (13:15 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 29 Oct 2012 13:38:43 +0000 (14:38 +0100)
commit0b121614a2086a8e66ae1f004fe912ba7c1d8a75
tree746c3b22e014ffd246916b724a6ee4d2e5ba0ff5
parent23f5e74ed3fa3812b6c9db92122a59406039edb8
xml: print uuids in the warning

In the XML warning, we print a virsh command line that can be used to
edit that XML. This patch prints UUIDs if the entity name contains
special characters (like shell metacharacters, or "--" that would break
parsing of the XML comment). If the entity doesn't have a UUID, just
print the virsh command that can be used to edit it.
src/conf/domain_conf.c
src/conf/network_conf.c
src/conf/nwfilter_conf.c
src/conf/storage_conf.c
src/libvirt_private.syms
src/parallels/parallels_storage.c
src/qemu/qemu_domain.c
src/util/xml.c
src/util/xml.h