[BUG] Highstate still runs explicitly disabled state files? #58314
Labels
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
Core
relates to code central or existential to Salt
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
State-Compiler
Milestone
Description
I am trying to disable a specific state file from ever being ran with salt minion state.disable dont_run, but when I run a highstate against the same minion, the state file still runs without hesitation. It only doesn't run if I, again, call it out with salt minion state.apply dont_run, I'll get:
This doesn't really make sense to me, and I can't imagine a scenario where this would be needed. If I explicitly mark a state file to be ignored it shouldn't be suddenly ok to run during a highstate.
Expected behavior
I would expect that during the highstate, the file I called out to be disabled would show up in the output as a successfully ignored state file, OR, the state file is omitted entirely in the output.
It should also not ever show up as an error, since there is no error. "Data failed to compile" is not something I would want to read when it is working as designed.
Versions Report
salt --versions-report
master
minion
The text was updated successfully, but these errors were encountered: