From c50900f26b98d18ecdf87670cc4a0a9c31590b17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 11 Apr 2016 09:56:00 +0200 Subject: [PATCH] Fix #935: fix corosync.conf check --- data/PVE/Cluster.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm index c21d37c..98c3c21 100644 --- a/data/PVE/Cluster.pm +++ b/data/PVE/Cluster.pm @@ -1507,7 +1507,7 @@ sub check_corosync_conf_exists { my $exists = -f "$basedir/corosync.conf"; warn "Corosync config '$basedir/corosync.conf' does not exist - is this node part of a cluster?\n" - if !$silent; + if !$silent && !$exists; return $exists; } -- 2.39.2