[PATCH/foreman 1/1] foremancli - Added a .to_s to a restclient call to support older versions of rest-client

Signed-off-by: Brian Gupta <brian.gupta@brandorr.com>

··· --- extras/cli/foremancli | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/extras/cli/foremancli b/extras/cli/foremancli
index e792a89…20fbf9f 100755
— a/extras/cli/foremancli
+++ b/extras/cli/foremancli
@@ -162,7 +162,7 @@ def get_collection(path, options = {})
JSON.parse(RestClient::Request.new({:method => :get,
:url => “#{@foreman_url}/#{path.to_s.chomp(’/’)}”,
:user => @foreman_user, :password => @foreman_pass,

  •                                 :headers => { :accept => :json, :content_type => :json }}.merge(options)).execute)
    
  •                                 :headers => { :accept => :json, :content_type => :json }}.merge(options)).execute.to_s)
    

end

def search_collection(path,search)

1.7.4.1