amfs-http-server 0.3.66__tar.gz → 0.3.67__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: amfs-http-server
3
- Version: 0.3.66
3
+ Version: 0.3.67
4
4
  Summary: AMFS HTTP/REST API server with SSE support
5
5
  License-Expression: Apache-2.0
6
6
  Requires-Python: >=3.11
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "amfs-http-server"
3
- version = "0.3.66"
3
+ version = "0.3.67"
4
4
  description = "AMFS HTTP/REST API server with SSE support"
5
5
  requires-python = ">=3.11"
6
6
  license = "Apache-2.0"
@@ -9834,7 +9834,15 @@ async def ingest_webhook(
9834
9834
  registry = ConnectorRegistry()
9835
9835
  connector = registry.get(connector_name)
9836
9836
  if connector:
9837
- ingester.register_transform("*", connector.transform)
9837
+ # A connector transforms the decoded payload: ConnectorABC.transform
9838
+ # takes the dict, which is what connectors are written and tested
9839
+ # against. The ingester calls its transforms with the WebhookEvent it
9840
+ # built instead, so registering the bound method as-is handed every
9841
+ # connector the event, and PagerDuty's first .get() raised: a 500 on
9842
+ # every delivery.
9843
+ ingester.register_transform(
9844
+ "*", lambda event: connector.transform(event.payload)
9845
+ )
9838
9846
  except Exception:
9839
9847
  pass
9840
9848