From 0a46e8cfb8c10ddd0b9d201c9660deb375aee02e Mon Sep 17 00:00:00 2001 From: Matt Ray Date: Tue, 29 Jan 2013 10:14:23 -0600 Subject: [PATCH] Set the User-Agent as Fog, to help differentiate from HP's CLI tools that have a vendored 'hpfog' --- lib/fog/hp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/hp.rb b/lib/fog/hp.rb index 887dfe5ca..8bd209a84 100644 --- a/lib/fog/hp.rb +++ b/lib/fog/hp.rb @@ -75,7 +75,7 @@ module Fog service_url = "#{@scheme}://#{@host}:#{@port}" # Set the User-Agent @user_agent = options[:user_agent] - set_user_agent_header(connection_options, "hpfog v1/#{Fog::HP::VERSION}", @user_agent) + set_user_agent_header(connection_options, "fog/#{Fog::VERSION}", @user_agent) connection = Fog::Connection.new(service_url, false, connection_options) @hp_access_key = options[:hp_access_key] @hp_secret_key = options[:hp_secret_key] @@ -118,7 +118,7 @@ module Fog service_url = "#{@scheme}://#{@host}:#{@port}" # Set the User-Agent. If the caller sets a user_agent, use it. @user_agent = options[:user_agent] - set_user_agent_header(connection_options, "hpfog/#{Fog::HP::VERSION}", @user_agent) + set_user_agent_header(connection_options, "fog/#{Fog::VERSION}", @user_agent) connection = Fog::Connection.new(service_url, false, connection_options) ### Implement HP Control Services Authentication services ###