1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

rstrip! the endpoint as well

I kept getting bad URI error when loading the endpoint from a file because there was a trailing newline. This fixes that problem.
This commit is contained in:
david karapetyan 2015-05-12 14:10:23 -07:00
parent 9467b9d557
commit 67e524f2b0

View File

@ -143,6 +143,8 @@ module OpenNebula
else
@one_endpoint = "http://localhost:2633/RPC2"
end
@one_endpoint.rstrip!
@async = !options[:sync]