mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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@m2r.biz> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
b886413488
commit
d3b483f977
1 file changed
+1
-1
@@ -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()
|
||||
|
||||