[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Nick Lewis nick at puppetlabs.com
Tue May 10 08:14:30 UTC 2011


The following commit has been merged in the experimental branch:
commit e119739de80a2a09593dbc69aee6049b723d4e06
Author: Nick Lewis <nick at puppetlabs.com>
Date:   Thu Apr 14 11:30:17 2011 -0700

    (#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

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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list