]> git.proxmox.com Git - pve-cluster.git/commitdiff
followup: code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Jul 2019 10:48:45 +0000 (12:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Jul 2019 10:48:45 +0000 (12:48 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/API2/ClusterConfig.pm

index 0daa9e76199fa7b510b16703d127fe601fa2bad2..83053db1fce0acf090e68d7f2571852e6142bb82 100644 (file)
@@ -173,9 +173,10 @@ my $config_change_lock = sub {
        my $members = PVE::Cluster::get_members();
        if (scalar(keys %$members) > 1) {
            my $res = PVE::Cluster::cfs_lock_file('corosync.conf', 10, $code);
-           # cfs_lock_file only sets $@
-           # lock_file does not propagate $@ unless we die here
+
+           # cfs_lock_file only sets $@ but lock_file doesn't propagates $@ unless we die here
            die $@ if defined($@);
+
            return $res;
        } else {
            return $code->();