Skip to content

Commit 67d9c8f

Browse files
committed
fix wrong logic
1 parent b543690 commit 67d9c8f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/vm/hypervisor/kvm/kvmsmpheartbeat.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ deleteVMs() {
102102
#checking is there the mount point present under $MountPoint?
103103
if grep -q "^[^ ]\+ $MountPoint " /proc/mounts
104104
then
105-
# mount exists; if not in read-check mode, consider deleting VMs similar to original behavior
105+
# mount exists; nothing to do here; keep for compatibility with original flow
106+
:
107+
else
108+
# mount point not present
109+
# if not in read-check mode, consider deleting VMs similar to original behavior
106110
if [ "$rflag" == "0" ]
107111
then
108112
deleteVMs $MountPoint
109113
fi
110-
else
111-
# mount point not present — we don't remount in local-only script
112-
# nothing to do here; keep for compatibility with original flow
113-
:
114114
fi
115115

116116
hbFolder="$MountPoint/KVMHA"

0 commit comments

Comments
 (0)