We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c1b8fa + b9d7b46 commit a7b23aaCopy full SHA for a7b23aa
lib/puppet-syntax/tasks/puppet-syntax.rb
@@ -26,7 +26,7 @@ def filelist_hiera_yaml
26
end
27
28
def initialize(*_args)
29
- desc 'Syntax check Puppet manifests and templates'
+ desc 'Syntax check for Puppet manifests, templates and Hiera'
30
task syntax: [
31
'syntax:manifests',
32
'syntax:templates',
@@ -69,6 +69,7 @@ def initialize(*_args)
69
namespace :hiera do
70
task :yaml do |t|
71
warn "---> #{t.name}"
72
+ warn "#{t.name} was called, but PuppetSyntax.check_hiera_keys is false. hiera syntax won't be checked" unless PuppetSyntax.check_hiera_keys
73
c = PuppetSyntax::Hiera.new
74
errors = c.check(filelist_hiera_yaml)
75
$stdout.puts "#{errors.join("\n")}\n" unless errors.empty?
0 commit comments