]> git.proxmox.com Git - pve-cluster.git/commitdiff
Fix #935: fix corosync.conf check
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 11 Apr 2016 07:56:00 +0000 (09:56 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 11 Apr 2016 08:27:11 +0000 (10:27 +0200)
data/PVE/Cluster.pm

index c21d37cbb790717fbc1b87df1e9b592d8fd7bff3..98c3c212bbd831dd812ce90c00ea3bd800f3bebe 100644 (file)
@@ -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"
     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;
 }
 
     return $exists;
 }