Skip to content

Commit

Permalink
for core 3.1.2 or earlier aggregated se bools are send as strings
Browse files Browse the repository at this point in the history
  • Loading branch information
emiltin committed Dec 12, 2024
1 parent d69c0c9 commit 83d5812
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/rsmp/supervisor_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 83d5812

Please sign in to comment.