diff --git a/lib/puppet/provider/sensu_check/json.rb b/lib/puppet/provider/sensu_check/json.rb index 37e1dad444..b6a3bac35e 100644 --- a/lib/puppet/provider/sensu_check/json.rb +++ b/lib/puppet/provider/sensu_check/json.rb @@ -4,7 +4,7 @@ begin require 'puppet_x/sensu/to_type' rescue LoadError => e - libdir = Pathname.new(__FILE__).parent.parent.parent + libdir = Pathname.new(__FILE__).parent.parent.parent.parent require File.join(libdir, 'puppet_x/sensu/to_type') end diff --git a/lib/puppet/provider/sensu_client_config/json.rb b/lib/puppet/provider/sensu_client_config/json.rb index 537472696a..1d2c61e7fc 100644 --- a/lib/puppet/provider/sensu_client_config/json.rb +++ b/lib/puppet/provider/sensu_client_config/json.rb @@ -4,7 +4,7 @@ begin require 'puppet_x/sensu/to_type' rescue LoadError => e - libdir = Pathname.new(__FILE__).parent.parent.parent + libdir = Pathname.new(__FILE__).parent.parent.parent.parent require File.join(libdir, 'puppet_x/sensu/to_type') end diff --git a/lib/puppet/provider/sensu_filter/json.rb b/lib/puppet/provider/sensu_filter/json.rb index 4258ce2be2..0aef30df2e 100644 --- a/lib/puppet/provider/sensu_filter/json.rb +++ b/lib/puppet/provider/sensu_filter/json.rb @@ -4,7 +4,7 @@ begin require 'puppet_x/sensu/to_type' rescue LoadError => e - libdir = Pathname.new(__FILE__).parent.parent.parent + libdir = Pathname.new(__FILE__).parent.parent.parent.parent require File.join(libdir, 'puppet_x/sensu/to_type') end diff --git a/lib/puppet/type/sensu_check.rb b/lib/puppet/type/sensu_check.rb index 49143244df..0acbb14fac 100644 --- a/lib/puppet/type/sensu_check.rb +++ b/lib/puppet/type/sensu_check.rb @@ -1,7 +1,7 @@ begin require 'puppet_x/sensu/to_type' rescue LoadError => e - libdir = Pathname.new(__FILE__).parent.parent.parent + libdir = Pathname.new(__FILE__).parent.parent.parent.parent require File.join(libdir, 'puppet_x/sensu/to_type') end Puppet::Type.newtype(:sensu_check) do diff --git a/lib/puppet/type/sensu_client_config.rb b/lib/puppet/type/sensu_client_config.rb index bd73951f19..ee466a2be5 100644 --- a/lib/puppet/type/sensu_client_config.rb +++ b/lib/puppet/type/sensu_client_config.rb @@ -1,7 +1,7 @@ begin require 'puppet_x/sensu/to_type' rescue LoadError => e - libdir = Pathname.new(__FILE__).parent.parent.parent + libdir = Pathname.new(__FILE__).parent.parent.parent.parent require File.join(libdir, 'puppet_x/sensu/to_type') end Puppet::Type.newtype(:sensu_client_config) do diff --git a/lib/puppet/type/sensu_filter.rb b/lib/puppet/type/sensu_filter.rb index 2dfb94175f..60f36b8855 100644 --- a/lib/puppet/type/sensu_filter.rb +++ b/lib/puppet/type/sensu_filter.rb @@ -1,7 +1,7 @@ begin require 'puppet_x/sensu/to_type' rescue LoadError => e - libdir = Pathname.new(__FILE__).parent.parent.parent + libdir = Pathname.new(__FILE__).parent.parent.parent.parent require File.join(libdir, 'puppet_x/sensu/to_type') end Puppet::Type.newtype(:sensu_filter) do