From ced1a29bfb3f3d1991ea88e658ea9462071fe4b8 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 5 Jun 2015 11:31:30 -0400 Subject: [PATCH] Copy ONE_AUTH and ONE_XMLRPC before stripping The strings that come from the environment are frozen and cannot be modified. --- src/oca/ruby/opennebula/client.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/oca/ruby/opennebula/client.rb b/src/oca/ruby/opennebula/client.rb index 3f730d0bab..a733dd5269 100644 --- a/src/oca/ruby/opennebula/client.rb +++ b/src/oca/ruby/opennebula/client.rb @@ -130,7 +130,7 @@ module OpenNebula raise "ONE_AUTH file not present" end - @one_auth.rstrip! + @one_auth = @one_auth.rstrip if endpoint @one_endpoint = endpoint @@ -143,8 +143,8 @@ module OpenNebula else @one_endpoint = "http://localhost:2633/RPC2" end - - @one_endpoint.rstrip! + + @one_endpoint= @one_endpoint.rstrip @async = !options[:sync]