def get_pending_reboot():
 checks = (get_pending_update, get_pending_file_rename, get_pending_servermanager, get_pending_component_servicing, get_reboot_required_witnessed, get_pending_computer_name, get_pending_domain_join)
 for check in checks:
  if check():
   return True
 return False

def get_pending_reboot ( ) : checks = ( get_pending_update , get_pending_file_rename , get_pending_servermanager , get_pending_component_servicing , get_reboot_required_witnessed , get_pending_computer_name , get_pending_domain_join ) for check in checks : if check ( ) : return True return False
determine whether there is a reboot pending .