1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +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"
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]