Skip to content

Commit 11d08e2

Browse files
authored
Merge pull request #291 from glennsarti/fix-gh189
(GH-189) Fix module root for validation
2 parents f9b2fe2 + b69dee1 commit 11d08e2

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)