From e119739de80a2a09593dbc69aee6049b723d4e06 Mon Sep 17 00:00:00 2001 From: Nick Lewis Date: Thu, 14 Apr 2011 11:30:17 -0700 Subject: (#6928) Add a notice to Parser#validate action when using default It was unclear what the action was validating when no arguments were specified, so now it notifies the user. Paired-With: Jesse Wolfe --- lib/puppet/face/parser.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/puppet/face/parser.rb b/lib/puppet/face/parser.rb index c44810b99..d4aaaf043 100644 --- a/lib/puppet/face/parser.rb +++ b/lib/puppet/face/parser.rb @@ -6,7 +6,10 @@ Puppet::Face.define(:parser, '0.0.1') do when_invoked do |*args| args.pop files = args - files << Puppet[:manifest] if files.empty? + if files.empty? + files << Puppet[:manifest] + Puppet.notice "No manifest specified. Validating the default manifest #{Puppet[:manifest]}" + end files.each do |file| Puppet[:manifest] = file Puppet::Node::Environment.new(Puppet[:environment]).known_resource_types.clear -- cgit