Skip to content

Commit 1e4e6e9

Browse files
committed
(MODULES-10988) fix require_relative being not relative enough
In some cases running this outside the default puppet agent config this can cause issues if the libdir does not end in `lib`. This fix does away with the extraneous level of relativity and thus avoids the problem. This is the only place in the module where this pattern was used.
1 parent b2b90b2 commit 1e4e6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/feature/iis_web_server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require 'puppet/util/feature'
4-
require_relative '../../../lib/puppet_x/puppetlabs/iis/iis_version'
4+
require_relative '../../puppet_x/puppetlabs/iis/iis_version'
55

66
Puppet.features.add(:iis_web_server) do
77
PuppetX::PuppetLabs::IIS::IISVersion.supported_version_installed?

0 commit comments

Comments
 (0)