Skip to content

Commit c29327c

Browse files
committed
(CONT-200) Fix require relative paths
Prior to this commit using stdlib/to_toml function in a separate environment outside of production will result in the following error if the latest version doesn't also live in production: ``` Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.LoadError: (LoadError) no such file to load -- puppet_x/stdlib ``` This commit fixes the issue by updating code to use the correct paths for require_relative.
1 parent dab602d commit c29327c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/puppet_x/stdlib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'puppet_x'
1+
require_relative '../puppet_x'
22

33
# common PuppetX::Stdlib module definition
44
module PuppetX::Stdlib; end

lib/puppet_x/stdlib/toml_dumper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1919
# THE SOFTWARE.
2020

21-
require_relative '../stdlib'
21+
require_relative '../../puppet_x/stdlib'
2222
require 'date'
2323

2424
module PuppetX::Stdlib

0 commit comments

Comments
 (0)