[checkmk-commits] Refactoring: Use 'for' instead of 'while' where it makes sense.