From 116c96b2c709ed47490ddf05a66000fa3974359b Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Thu, 27 May 2021 11:28:50 -0300 Subject: [PATCH] 17738: Fixes the issue by strip!()ing a mutable version of OS_VERSION. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- sdk/ruby/lib/arvados/google_api_client.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/ruby/lib/arvados/google_api_client.rb b/sdk/ruby/lib/arvados/google_api_client.rb index 69383d12f6..5a41b11c4f 100644 --- a/sdk/ruby/lib/arvados/google_api_client.rb +++ b/sdk/ruby/lib/arvados/google_api_client.rb @@ -6,7 +6,8 @@ require 'google/api_client' # Monkeypatch google-api-client gem to avoid sending newline characters # on headers to make ruby-2.3.7+ happy. # See: https://dev.arvados.org/issues/13920 -Google::APIClient::ENV::OS_VERSION.strip! +# Addendum: OS_VERSION sometimes is not mutable, that's why we duplicate it (See: #17738) +Google::APIClient::ENV::OS_VERSION = +Google::APIClient::ENV::OS_VERSION.strip! require 'json' require 'tempfile' -- 2.30.2