Skip to content

[DOCS] Beacons and reactors docs (version 3000.3) incorrect for accessing data dict #61616

Closed as not planned

Description

@jmcmillan89

Description
The Salt documentation for beacons and reactors states:

An event initiated by a beacon, when it arrives at the master will be wrapped inside a second event, such that the data object containing the beacon information will be data['data'], rather than data.

For example, to access the id field of the beacon event in a reactor file, you will need to reference {{ data['data']['id'] }} rather than {{ data['id'] }} as for events initiated directly on the event bus.

When I try to access {{ data['data']['id'] }} in a reactor state triggered by a beacon, my state fails to render with SaltRenderError: Jinja variable 'dict object' has no attribute 'data'. Once I switched to using {{ data['id'] }}, it started working.

Suggested Fix
It's possible my understanding of the documentation is incorrect, but the docs seem very explicit about the behavior, and that is not what I am seeing.

Type of documentation
Salt reactor system documentation

Location or format of documentation
https://docs.saltproject.io/en/3003/topics/reactor/index.html#beacons-and-reactors

EDIT: I realize that I misread the version of Salt we are using -- I have linked version 3003.3 of the documentation, but we are actually running version 3000.3 -- that being said, I did check the v3000.3 tag on GitHub and the 'Beacons and Reactos' section appears to be the same.

Additional context
Below is my beacon definition, which is defined in a local pillar file and applied to the minion against which I am testing:

cat /srv/pillar/justin/beacons/init.sls
beacons:
  service:
    - services:
        eap7-standalone:
          onchangeonly: True
          delay: 0
          emitatstartup: False
          uncleanshutdown: /var/opt/rh/eap7/run/wildfly/eap7-standalone.pid

And I have documented the non-working example for my own notes in a OneNote document from which the following screenshot was taken:
image

Activity

  1. added
    documentation
    on Feb 9, 2022
  2. removed their assignment
    on Feb 11, 2022
  3. added this to the Approved milestone on Feb 11, 2022
  4. self-assigned this
    on Feb 11, 2022
  5. added
    severity-medium
    on Feb 28, 2022
  6. dwoz commented on Oct 15, 2026

    @dwoz
    Contributor

    Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.

    Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.

    If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.

  7. dwoz commented on Oct 17, 2026

    @dwoz
    Contributor

    Reopening — there is an open PR tracking a fix for this: #69564.

  8. reopened this on Oct 17, 2026
  9. dwoz commented on Oct 28, 2026

    @dwoz
    Contributor

    Closing — consolidated into #70585. The checkbox for this item is in the appropriate theme section of that tracker. Please pick up the sub-item there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationseverity-mediumtime-estimate-sprint

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions