Skip to content

Commit b69dee1

Browse files
committed
(GH-189) Fix module root for validation
Previously in commit c70511b validation was changed to initialise Puppet Lint correctly, however there was a typo in the provider. This commit fixes the typo and references the correct variable.
1 parent f9b2fe2 commit b69dee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet-languageserver/manifest/validation_provider.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def self.init_puppet_lint(root_dir, lint_options = [])
116116
linter_options = PuppetLint::OptParser.build
117117
else
118118
begin
119-
Dir.chdir(module_root.to_s) { linter_options = PuppetLint::OptParser.build }
119+
Dir.chdir(root_dir.to_s) { linter_options = PuppetLint::OptParser.build }
120120
rescue OptionParser::InvalidOption => e
121121
PuppetLanguageServer.log_message(:error, "(#{name}) Error reading Puppet Lint configuration. Using default: #{e}")
122122
linter_options = PuppetLint::OptParser.build

0 commit comments

Comments
 (0)