You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(signatures): build_payload raises AttributeError when targets_meta is a dict #366
SignatureManager.build_payload accepts targets_meta as a single dict (it is broadcast to every execution signature), but then reads it with attribute access (target.agent_id, target.asset_id, target.asset_group_id), so passing a dict raises AttributeError. Only objects with those attributes work, e.g. the injectors' msg_data.targets_meta entries.
The dict is used as the target metadata of every signature (or dicts are rejected with a clear error and the docstring/type hint says objects are required).
Actual output
AttributeError: 'dict' object has no attribute 'agent_id'
Additional information
No injector passes a dict today, so nothing is broken in production. Found while working on #352; #364 doesn't change this.
Activity