Skip to content

Commit 76f87d7

Browse files
authored
fix: zabbix scopes permissions invalid parameter (#2427)
1 parent 8597b9e commit 76f87d7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

keep/providers/zabbix_provider/zabbix_provider.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,12 @@ def validate_scopes(self) -> dict[str, bool | str]:
290290
validated_scopes[scope.name] = "Permission denied"
291291
continue
292292
else:
293-
validated_scopes[scope.name] = error
294-
continue
293+
if error and "invalid parameter" in error.lower():
294+
# This is OK, it means the request is broken but we have access to the endpoint.
295+
pass
296+
else:
297+
validated_scopes[scope.name] = error
298+
continue
295299
validated_scopes[scope.name] = True
296300
return validated_scopes
297301

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "keep"
3-
version = "0.28.2"
3+
version = "0.28.3"
44
description = "Alerting. for developers, by developers."
55
authors = ["Keep Alerting LTD"]
66
readme = "README.md"

0 commit comments

Comments
 (0)