def confirm_updated(value, check_fun, normalize_ret=False, wait=5):
 for i in range(wait):
  state = (validate_enabled(check_fun()) if normalize_ret else check_fun())
  if (value in state):
   return True
  time.sleep(1)
 return False

def confirm_updated ( value , check_fun , normalize_ret = False , wait = 5 ) : for i in range ( wait ) : state = ( validate_enabled ( check_fun ( ) ) if normalize_ret else check_fun ( ) ) if ( value in state ) : return True time . sleep ( 1 ) return False
wait up to wait seconds for a system parameter to be changed before deciding it hasnt changed .