Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for core 3.1.2 or earlier aggregated se bools are send as strings #96

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
rsmp (0.33.0)
rsmp (0.33.1)
async (~> 2.16)
async-io (~> 1.43)
colorize (~> 1.1)
Expand Down
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
2 changes: 1 addition & 1 deletion lib/rsmp/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RSMP
VERSION = "0.33.0"
VERSION = "0.33.1"
end
Loading