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:
parent
1a39dd0e8c
commit
a4c040a29f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user