From 83d5812a74520e51b5c5dd0713839bb6ca44df13 Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Thu, 12 Dec 2024 11:40:50 +0100 Subject: [PATCH] for core 3.1.2 or earlier aggregated se bools are send as strings --- lib/rsmp/supervisor_proxy.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/rsmp/supervisor_proxy.rb b/lib/rsmp/supervisor_proxy.rb index 855e922..1f6cecf 100644 --- a/lib/rsmp/supervisor_proxy.rb +++ b/lib/rsmp/supervisor_proxy.rb @@ -180,6 +180,12 @@ def send_aggregated_status component, options={} "se" => component.aggregated_status_bools, "mId" => m_id, }) + + # Core 3.1.2 or earlier requires that se items to be send as strings + if Proxy::version_meets_requirement?(core_version,"<=3.1.2") + message.attributes["se"].map! {|bool| bool ? "true" : "false"} + end + set_nts_message_attributes message send_and_optionally_collect message, options do |collect_options| Collector.new self, collect_options.merge(task:@task, type: 'MessageAck')