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:
parent
1fd2e22d34
commit
4c7f6dc01b
@ -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…
Reference in New Issue
Block a user