Page 1 sur 1

[RESOLU] Fonction waiting_for_reboot dans utils.py HS en version 2.6.0.16767

Posté : 15 janv. 2025 - 11:43
par tux
Bonjour,

La fonction waiting_for_reboot dans utils.py ligne 145 plante.

isPendingReboot = waiting_for_reboot()
File "C:\Program Files (x86)\wapt\waptwua\utils.py", line 145, in waiting_for_reboot
if reg_key_exists(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update','RebootRequired') or \
TypeError: reg_key_exists() takes 2 positional arguments but 3 were given


Wapt Entreprise version 2.6.0.16767 (version installé hier après midi), client Windows 10.

Re: Fonction waiting_for_reboot dans utils.py HS en version 2.6.0.16767

Posté : 15 janv. 2025 - 16:51
par fschelfaut
Bonjour,

La fonction waiting_for_reboot() est déprécié, il vaut mieux utiliser is_pending_reboot() de la lib setuphelpers
Si tu souhaite avoir les raisons du reboot tu as aussi cette fonction de disponible : pending_reboot_reasons()

Flavien,

Re: Fonction waiting_for_reboot dans utils.py HS en version 2.6.0.16767

Posté : 15 janv. 2025 - 18:21
par tux
Bonjour,

Merci pour ce retour.