Werk #5266: cmk-update-agent: Python 2.4 compatibility fix

Component Agent bakery
Title cmk-update-agent: Python 2.4 compatibility fix
Date Dec 15, 2017
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.4.0p22 Checkmk Enterprise (CEE), Checkmk MSP (CME)

Due to a code statement that is not supported in Python 2.4, the Agent Updater could crash when running on a system with a Python interpreter 2.4 or older.

An execution of cmk-update-agent would crash with an error message like:

  File "cmk-update-agent", line 694
    with open(get_all_certs_filepath(), "w") as acf:
            ^
SyntaxError: invalid syntax

To the list of all Werks