]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libvirt-guest.init: handle domain name with spaces
authorPhilipp Hahn <hahn@univention.de>
Tue, 1 Mar 2011 17:57:01 +0000 (18:57 +0100)
committerEric Blake <eblake@redhat.com>
Fri, 11 Mar 2011 18:24:44 +0000 (11:24 -0700)
commit2bbda1444dc12b2b7337f8faca12299978111a15
treecad6bc9157628076f53a83b4b7faf72939abd428
parenta757e60a076e266e4d9fd9dca69ec43323b89d61
libvirt-guest.init: handle domain name with spaces

awk splits the line on consecutive spaces, which breaks getting the name
of a domain whose name contains spaces. Use sed instead to strip the
"Name:" prefix from the line

Signed-off-by: Philipp Hahn <hahn@univention.de>
tools/libvirt-guests.init.sh