[pve-devel] [PATCH cluster] Fix #935: fix corosync.conf check

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Apr 11 09:56:00 CEST 2016


---
 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.1.4





More information about the pve-devel mailing list