Skip to content

Commit

Permalink
B ##6665: Fix missing CLEANUP_MEMORY_ON_STOP for KVM migrations
Browse files Browse the repository at this point in the history
Fix is the same applied here: c9742ad3d798e3c (use to_s to prevent
nil.upcase calls)
  • Loading branch information
rsmontero committed Sep 2, 2024
1 parent 1fd2e22 commit 4c7f6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vmm_mad/remotes/kvm/migrate
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c7f6dc

Please sign in to comment.