1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

M #-: Fix ssh live migration on Debian10 (#627)

This commit is contained in:
Jan Orel 2021-01-13 09:24:50 +01:00 committed by GitHub
parent c0e482fdfa
commit 3187ff05f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,12 +30,11 @@ is_readonly() {
local DOMAIN=$1
local DISK=$2
READ_ONLY=$(awk 'gsub(/[\0]/, x)' \
<( virsh --connect $LIBVIRT_URI dumpxml $DOMAIN | \
READ_ONLY=$(virsh --connect $LIBVIRT_URI dumpxml $DOMAIN | \
$XPATH --stdin --subtree \
"//domain/devices/disk[source/@file='$DISK']/readonly"))
"//domain/devices/disk[source/@file='$DISK']/readonly")
[ "$READ_ONLY" = '<readonly/>' ]
[[ "$READ_ONLY" =~ '<readonly/>' ]]
}
get_size_and_format_of_disk_img() {