[BUG] beacon.present
state TypeError traceback
#66440
Labels
Bug
broken, incorrect, or confusing behavior
Milestone
Description
Sometimes - I assume when the minion-master connection is temporarily unavailable * -
beacon.present
just crashes with a traceback:TypeError: argument of type 'NoneType' is not iterable
Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Please be as specific as possible and give set-up details.
* The behavior usually manifests shortly after a daemon restart -
startup_states: highstate
is in my config. Maybe there is some race condition.Steps to Reproduce the behavior
salt-call --local state.single beacon.present
Expected behavior
Return an error description or retry (it happens when the daemon is up, the reproduction above just simulates what happens).
Screenshots
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
This is caused by
beacons.list
returningNone
whenevent.fire
fails andbeacon.present
indiscriminately iterating over the result.I think the solution should be twofold:
None
Another note:
beacons.list
potentially returns three different value types:None
when the event fails completely2. could cause weird behavior as well.
The text was updated successfully, but these errors were encountered: