Skip to content

Commit

Permalink
fix: zabbix scopes permissions invalid parameter (#2427)
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Nov 10, 2024
1 parent 8597b9e commit 76f87d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions keep/providers/zabbix_provider/zabbix_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,12 @@ def validate_scopes(self) -> dict[str, bool | str]:
validated_scopes[scope.name] = "Permission denied"
continue
else:
validated_scopes[scope.name] = error
continue
if error and "invalid parameter" in error.lower():
# This is OK, it means the request is broken but we have access to the endpoint.
pass
else:
validated_scopes[scope.name] = error
continue
validated_scopes[scope.name] = True
return validated_scopes

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "keep"
version = "0.28.2"
version = "0.28.3"
description = "Alerting. for developers, by developers."
authors = ["Keep Alerting LTD"]
readme = "README.md"
Expand Down

0 comments on commit 76f87d7

Please sign in to comment.