Skip to content

event.get("extra") returns None even if event["extra"] would return a dictionary #1305

@bernhard-herzog

Description

@bernhard-herzog

In IntelMQ 1.1 the way the extra field is handled has changed, but for backwards compatibility it's still possible to access it with just the key "extra" (#1046). This works fine with the __getitem__ and __contains__ methods but does not work with the get method. If there are any values in the extra field so that event["extra"] would return a dictionary, event.get("extra") will still return None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcomponent: core

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions