Werk #12251: unitrends_replication.py: support for Python 2/Python 3
Komponente | Checks & agents |
Titel | unitrends_replication.py: support for Python 2/Python 3 |
Datum | 26.02.2021 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 2.0.0b8 2.1.0b1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
In Python version 2 the agent plugin 'unitrends_replication' crashed with the error message:
Traceback (most recent call last):
File "unitrends_replication.py", line 11, in <module>
import urllib.request
ImportError: No module named request
The reason for this is that in previous Python versions "urllib.request" did not exist. This werk introduces an alternative handling of "urllib" for affected python versions.