Change reload_modules to trigger only on state changes (#39015) (#39016)
Change reload_modules to trigger only on state changes (#39015) (#39016)

* Change reload_modules to trigger only on state changes (#39015)

* Helps with performance
* 99.9% of the time used by Salt users along with pip.installed, pkg.installed or cmd.run which remain compatible.
* Creates minor incompatibility if used with a logically-incomplete state that does not properly report changes.

* Add option to force module reload even with no changes at state.py

* fix force_reload_modules logic

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt