[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] tools/hotplug: fix bug on xendomains using xl
commit d3b483f9776fbae19a2354a2a3c81536fcbdd37a Author: Fabio Fantoni <fabio.fantoni@xxxxxxx> AuthorDate: Tue Jan 21 14:51:08 2014 +0100 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Tue Jan 28 11:18:30 2014 +0000 tools/hotplug: fix bug on xendomains using xl Make rdname function work with xl. The rdname function not support json output of xl commands and this cause problems using xl, for example the check if domUs are already running (because they have been restored) on domUs autostart does not succeed and the domain is created in any case, causing xl create to fail. Signed-off-by: Fabio Fantoni <fabio.fantoni@xxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- tools/hotplug/Linux/init.d/xendomains | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/hotplug/Linux/init.d/xendomains b/tools/hotplug/Linux/init.d/xendomains index 38371af..59f1e3d 100644 --- a/tools/hotplug/Linux/init.d/xendomains +++ b/tools/hotplug/Linux/init.d/xendomains @@ -186,7 +186,7 @@ contains_something() rdname() { NM=$($CMD create --quiet --dryrun --defconfig "$1" | - sed -n 's/^.*(name \(.*\))$/\1/p') + sed -n 's/^.*(name \(.*\))$/\1/p;s/^.*"name": "\(.*\)",$/\1/p') } rdnames() -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |