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:
parent
ce6f465b95
commit
ced1a29bfb
@ -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]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user