1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-05 09:17:41 +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)
This commit is contained in:
Ruben S. Montero 2024-09-02 15:34:52 +02:00
parent 1fd2e22d34
commit 4c7f6dc01b
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