From 67e524f2b0dcc28a3689c8aeea500c37a8cfc8c4 Mon Sep 17 00:00:00 2001 From: david karapetyan Date: Tue, 12 May 2015 14:10:23 -0700 Subject: [PATCH] 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. --- src/oca/ruby/opennebula/client.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/oca/ruby/opennebula/client.rb b/src/oca/ruby/opennebula/client.rb index d649f36e8f..3f730d0bab 100644 --- a/src/oca/ruby/opennebula/client.rb +++ b/src/oca/ruby/opennebula/client.rb @@ -143,6 +143,8 @@ module OpenNebula else @one_endpoint = "http://localhost:2633/RPC2" end + + @one_endpoint.rstrip! @async = !options[:sync]