1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-24 17:49:28 +03:00

Copy ONE_AUTH and ONE_XMLRPC before stripping

The strings that come from the environment are frozen and cannot
be modified.
This commit is contained in:
Javi Fontan
2015-06-05 11:31:30 -04:00
parent ce6f465b95
commit ced1a29bfb

View File

@ -130,7 +130,7 @@ module OpenNebula
raise "ONE_AUTH file not present" raise "ONE_AUTH file not present"
end end
@one_auth.rstrip! @one_auth = @one_auth.rstrip
if endpoint if endpoint
@one_endpoint = endpoint @one_endpoint = endpoint
@ -143,8 +143,8 @@ module OpenNebula
else else
@one_endpoint = "http://localhost:2633/RPC2" @one_endpoint = "http://localhost:2633/RPC2"
end end
@one_endpoint.rstrip! @one_endpoint= @one_endpoint.rstrip
@async = !options[:sync] @async = !options[:sync]