diff --git a/check_mk_api/check_mk_api-5.5.0.mkp b/check_mk_api/check_mk_api-5.5.0.mkp
deleted file mode 100644
index 4601b39a..00000000
Binary files a/check_mk_api/check_mk_api-5.5.0.mkp and /dev/null differ
diff --git a/check_mk_api/check_mk_api-5.5.1.mkp b/check_mk_api/check_mk_api-5.5.1.mkp
new file mode 100644
index 00000000..4848aa27
Binary files /dev/null and b/check_mk_api/check_mk_api-5.5.1.mkp differ
diff --git a/check_mk_api/checkmkapi.html b/check_mk_api/checkmkapi.html
index cf11bab4..cd98648c 100644
--- a/check_mk_api/checkmkapi.html
+++ b/check_mk_api/checkmkapi.html
@@ -20,10 +20,9 @@
json
os
requests
- | sys
-time
- | warnings
- |
+
time
+warnings
+ | |
Classes |
diff --git a/check_mk_api/lib/python3/checkmkapi.py b/check_mk_api/lib/python3/checkmkapi.py
index 65989d54..3d66fe9d 100644
--- a/check_mk_api/lib/python3/checkmkapi.py
+++ b/check_mk_api/lib/python3/checkmkapi.py
@@ -15,7 +15,7 @@
import os
import json
import time
-import sys
+# import sys
import configparser
import json
@@ -89,8 +89,8 @@ def _check_response(self, resp):
else:
data = {}
etag = resp.headers.get('ETag', '').strip('"')
- if resp.status_code >= 400:
- sys.stderr.write("%r\n" % data)
+ # if resp.status_code >= 400:
+ # sys.stderr.write("%r\n" % data)
return data, etag, resp
def _get_url(self, uri, data={}):
@@ -1369,7 +1369,9 @@ def create_notification_rule(self, rule_config):
"""
data, etag, resp = self._post_url(
"domain-types/notification_rule/collections/all",
- data=rule_config,
+ data={
+ "rule_config": rule_config,
+ },
)
if resp.status_code == 200:
return data, etag
@@ -1438,7 +1440,9 @@ def edit_notification_rule(self, rule_id, rule_config):
"""
data, etag, resp = self._put_url(
f"objects/notification_rule/{rule_id}",
- data=params
+ data={
+ "rule_config": rule_config,
+ },
)
if resp.status_code == 200:
return data, etag
@@ -1503,7 +1507,7 @@ def _api_request(self, api_url, params, data=None):
else:
return eval(resp.text)
else:
- sys.stderr.write("%s\n" % resp.text)
+ # sys.stderr.write("%s\n" % resp.text)
resp.raise_for_status()
def view(self, view_name, **kwargs):