mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Set the User-Agent as Fog, to help differentiate from HP's CLI tools that have a vendored 'hpfog'
This commit is contained in:
parent
0388d4f11a
commit
0a46e8cfb8
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ module Fog
|
||||||
service_url = "#{@scheme}://#{@host}:#{@port}"
|
service_url = "#{@scheme}://#{@host}:#{@port}"
|
||||||
# Set the User-Agent
|
# Set the User-Agent
|
||||||
@user_agent = options[: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)
|
connection = Fog::Connection.new(service_url, false, connection_options)
|
||||||
@hp_access_key = options[:hp_access_key]
|
@hp_access_key = options[:hp_access_key]
|
||||||
@hp_secret_key = options[:hp_secret_key]
|
@hp_secret_key = options[:hp_secret_key]
|
||||||
|
@ -118,7 +118,7 @@ module Fog
|
||||||
service_url = "#{@scheme}://#{@host}:#{@port}"
|
service_url = "#{@scheme}://#{@host}:#{@port}"
|
||||||
# Set the User-Agent. If the caller sets a user_agent, use it.
|
# Set the User-Agent. If the caller sets a user_agent, use it.
|
||||||
@user_agent = options[:user_agent]
|
@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)
|
connection = Fog::Connection.new(service_url, false, connection_options)
|
||||||
|
|
||||||
### Implement HP Control Services Authentication services ###
|
### Implement HP Control Services Authentication services ###
|
||||||
|
|
Loading…
Add table
Reference in a new issue