mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Check dict key get_reboot_active exists before attempting to use, not all proxy implement it
This commit is contained in:
parent
5457218d86
commit
a5d95458fe
1 changed files with 2 additions and 1 deletions
|
@ -1790,7 +1790,8 @@ def proxy_reconnect(proxy_name, opts=None):
|
|||
if proxy_keepalive_fn not in __proxy__:
|
||||
return False # fail
|
||||
|
||||
if __proxy__[proxy_name + ".get_reboot_active"]():
|
||||
chk_reboot_active_key = proxy_name + ".get_reboot_active"
|
||||
if chk_reboot_active_key in __proxy__ and __proxy__[chk_reboot_active_key]():
|
||||
# if rebooting or shutting down, don't run proxy_reconnect
|
||||
# it interferes with the connection and disrupts the shutdown/reboot
|
||||
# especially
|
||||
|
|
Loading…
Add table
Reference in a new issue