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:
@ -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]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user