Skip to content

Commit

Permalink
handle headers with string keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nasark committed Nov 28, 2023
1 parent e4560c3 commit 1cf7daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/manageiq/messaging/kafka/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def message_header_keys

def parse_message_headers(headers)
return [nil, nil, nil] unless headers.kind_of?(Hash)
headers.values_at(*message_header_keys)
headers.with_indifferent_access.values_at(*message_header_keys)
end

def event_header_keys
Expand All @@ -125,7 +125,7 @@ def event_header_keys

def parse_event_headers(headers)
return [nil, nil] unless headers.kind_of?(Hash)
headers.values_at(*event_header_keys)
headers.with_indifferent_access.values_at(*event_header_keys)
end
end
end
Expand Down

0 comments on commit 1cf7daf

Please sign in to comment.