[ARVADOS] created: 2.1.0-838-g116c96b2c

Git user git at public.arvados.org
Thu May 27 14:30:51 UTC 2021


        at  116c96b2c709ed47490ddf05a66000fa3974359b (commit)


commit 116c96b2c709ed47490ddf05a66000fa3974359b
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Thu May 27 11:28:50 2021 -0300

    17738: Fixes the issue by strip!()ing a mutable version of OS_VERSION.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/sdk/ruby/lib/arvados/google_api_client.rb b/sdk/ruby/lib/arvados/google_api_client.rb
index 69383d12f..5a41b11c4 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'

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list