It was unclear what the action was validating when no arguments were specified,
so now it notifies the user.

Paired-With: Jesse Wolfe

Signed-off-by: Nick Lewis <[email protected]>
---
Local-branch: ticket/next/6928
 lib/puppet/face/parser.rb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lib/puppet/face/parser.rb b/lib/puppet/face/parser.rb
index c44810b..d4aaaf0 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
-- 
1.7.4.1

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to