diff --git a/lib/chef/knife/profitbricks_base.rb b/lib/chef/knife/profitbricks_base.rb index 513116a..9880e45 100644 --- a/lib/chef/knife/profitbricks_base.rb +++ b/lib/chef/knife/profitbricks_base.rb @@ -1,4 +1,5 @@ require 'chef/knife' +require 'knife-profitbricks/version' class Chef class Knife @@ -36,6 +37,8 @@ def connection config.url = Chef::Config[:knife][:profitbricks_url] config.debug = Chef::Config[:knife][:profitbricks_debug] || false config.global_classes = false + config.headers = Hash.new + config.headers['User-Agent'] = "Chef/#{::Chef::VERSION} knife-profitbricks/#{::Knife::ProfitBricks::VERSION}" end end @@ -63,7 +66,7 @@ def get_image(image_name, image_type, image_location) min_image = image end end - min_image + min_image end end end diff --git a/lib/knife-profitbricks/version.rb b/lib/knife-profitbricks/version.rb index 7b43ddc..a2f940e 100644 --- a/lib/knife-profitbricks/version.rb +++ b/lib/knife-profitbricks/version.rb @@ -1,6 +1,6 @@ module Knife module ProfitBricks - VERSION = '2.0.0' + VERSION = '2.0.1' MAJOR, MINOR, TINY = VERSION.split('.') end end