1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B ##6665: Fix missing CLEANUP_MEMORY_ON_STOP for KVM migrations

Fix is the same applied here: c9742ad3d798e3c (use to_s to prevent
nil.upcase calls)

(cherry picked from commit 4c7f6dc01b79b27b9d0a474d9f9b7890a3044894)
This commit is contained in:
Ruben S. Montero 2024-09-02 15:34:52 +02:00
parent 1a39dd0e8c
commit a4c040a29f
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -252,7 +252,7 @@ begin
# Compact memory
# rubocop:disable Layout/LineLength
if ENV['CLEANUP_MEMORY_ON_STOP'].upcase == 'YES'
if ENV['CLEANUP_MEMORY_ON_STOP'].to_s.upcase == 'YES'
`(sudo -l | grep -q sysctl) && sudo -n sysctl vm.drop_caches=3 vm.compact_memory=1 &>/dev/null &`
end
# rubocop:enable Layout/LineLength