migrate-vm: do not display drbd error
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jérémy Lecour 2021-04-29 09:56:39 +02:00 committed by Jérémy Lecour
parent 5d79c31dc3
commit 5b9d2a2776
1 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@
# * migrate "from"
# * switch to Bash to use local and readonly variables
VERSION="21.04"
VERSION="21.04.1"
show_version() {
cat <<END
@ -66,7 +66,8 @@ drbd_config_file() {
}
is_drbd_resource() {
test -f "$(drbd_config_file "${1:-}")"
resource=${1:-}
test -f "$(drbd_config_file "${resource}")" && drbdadm role "${resource}" >/dev/null 2>&1
}
drbd_peers() {