salt.grains.pending_reboot

Grain that indicates the system is pending a reboot See functions in salt.utils.win_system to see what conditions would indicate a reboot is pending

salt.grains.pending_reboot.pending_reboot()

A grain that indicates that a Windows system is pending a reboot.

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/grains/all/salt.grains.pending_reboot.html