diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-04-14 11:30:17 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-04-14 11:30:17 -0700 |
commit | e119739de80a2a09593dbc69aee6049b723d4e06 (patch) | |
tree | 8457e370e589dd86e97b21f0cbecf8270b4a2430 | |
parent | 5915814c47649bb4b957b4be4fcee5919b859451 (diff) | |
download | puppet-e119739de80a2a09593dbc69aee6049b723d4e06.tar.gz puppet-e119739de80a2a09593dbc69aee6049b723d4e06.tar.xz puppet-e119739de80a2a09593dbc69aee6049b723d4e06.zip |
(#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
-rw-r--r-- | 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 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 |