From e6b34ae6c8661381731f9a6eb76e50db2b988ca5 Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Thu, 28 Nov 2019 12:23:04 +0100 Subject: [PATCH] Fix more providers --- CHANGELOG.md | 1 + lib/puppet/provider/elasticsearch_plugin/plugin.rb | 2 +- lib/puppet/provider/elasticsearch_user_file/oss_xpack.rb | 2 +- lib/puppet/provider/elasticsearch_user_file/shield.rb | 2 +- lib/puppet/provider/elasticsearch_user_file/xpack.rb | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fd8dc244..eca824acb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ #### Features #### Fixes +* Fix "Could not autoload" errors in more types/providers. ## 6.4.0 (August 28, 2019) diff --git a/lib/puppet/provider/elasticsearch_plugin/plugin.rb b/lib/puppet/provider/elasticsearch_plugin/plugin.rb index 33b6c8c64..0e24b7cec 100644 --- a/lib/puppet/provider/elasticsearch_plugin/plugin.rb +++ b/lib/puppet/provider/elasticsearch_plugin/plugin.rb @@ -1,4 +1,4 @@ -require 'puppet/provider/elastic_plugin' +require File.join(File.dirname(__FILE__), '..', '..', '..', 'puppet/provider/elastic_plugin') Puppet::Type.type(:elasticsearch_plugin).provide( :plugin, diff --git a/lib/puppet/provider/elasticsearch_user_file/oss_xpack.rb b/lib/puppet/provider/elasticsearch_user_file/oss_xpack.rb index a160bea7d..d2cf05e58 100644 --- a/lib/puppet/provider/elasticsearch_user_file/oss_xpack.rb +++ b/lib/puppet/provider/elasticsearch_user_file/oss_xpack.rb @@ -1,4 +1,4 @@ -require 'puppet/provider/elastic_parsedfile' +require File.join(File.dirname(__FILE__), '..', '..', '..', 'puppet/provider/elastic_parsedfile') Puppet::Type.type(:elasticsearch_user_file).provide( :oss_xpack, diff --git a/lib/puppet/provider/elasticsearch_user_file/shield.rb b/lib/puppet/provider/elasticsearch_user_file/shield.rb index a6f15f658..8af1a7792 100644 --- a/lib/puppet/provider/elasticsearch_user_file/shield.rb +++ b/lib/puppet/provider/elasticsearch_user_file/shield.rb @@ -1,4 +1,4 @@ -require 'puppet/provider/elastic_parsedfile' +require File.join(File.dirname(__FILE__), '..', '..', '..', 'puppet/provider/elastic_parsedfile') Puppet::Type.type(:elasticsearch_user_file).provide( :shield, diff --git a/lib/puppet/provider/elasticsearch_user_file/xpack.rb b/lib/puppet/provider/elasticsearch_user_file/xpack.rb index 318ad35bb..3afcef526 100644 --- a/lib/puppet/provider/elasticsearch_user_file/xpack.rb +++ b/lib/puppet/provider/elasticsearch_user_file/xpack.rb @@ -1,4 +1,4 @@ -require 'puppet/provider/elastic_parsedfile' +require File.join(File.dirname(__FILE__), '..', '..', '..', 'puppet/provider/elastic_parsedfile') Puppet::Type.type(:elasticsearch_user_file).provide( :xpack,