summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/parser.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-18 09:38:32 -0600
committerLuke Kanies <luke@madstop.com>2008-02-18 09:38:32 -0600
commita53106cf08c28e996502cba703f64944250a4b29 (patch)
tree4dee55340a4d91083e940fecb9087ecfaa7c279f /lib/puppet/parser/parser.rb
parentbe58bb5c4bc19e59685e0a8953eaf2d3b7844110 (diff)
parent62d7616a457f33eb660454fcdcefe8dab84522c0 (diff)
downloadpuppet-a53106cf08c28e996502cba703f64944250a4b29.tar.gz
puppet-a53106cf08c28e996502cba703f64944250a4b29.tar.xz
puppet-a53106cf08c28e996502cba703f64944250a4b29.zip
Merge branch '0.24.x'
Conflicts: CHANGELOG man/man8/puppet.8
Diffstat (limited to 'lib/puppet/parser/parser.rb')
-rw-r--r--lib/puppet/parser/parser.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/puppet/parser/parser.rb b/lib/puppet/parser/parser.rb
index c3279d4e7..e27a209fc 100644
--- a/lib/puppet/parser/parser.rb
+++ b/lib/puppet/parser/parser.rb
@@ -29,7 +29,7 @@ module Puppet
class Parser < Racc::Parser
-module_eval <<'..end grammar.ra modeval..id9134b179f4', 'grammar.ra', 638
+module_eval <<'..end grammar.ra modeval..idfef5d70c9f', 'grammar.ra', 638
# It got too annoying having code in a file that needs to be compiled.
require 'puppet/parser/parser_support'
@@ -39,8 +39,9 @@ require 'puppet/parser/parser_support'
# mode: ruby
# End:
+# $Id$
-..end grammar.ra modeval..id9134b179f4
+..end grammar.ra modeval..idfef5d70c9f
##### racc 1.4.5 generates ###
@@ -956,7 +957,7 @@ module_eval <<'.,.,', 'grammar.ra', 174
def _reduce_38( val, _values, result )
type = val[0]
- if type == :exported and ! Puppet[:storeconfigs]
+ if (type == :exported and ! Puppet[:storeconfigs]) and ! Puppet[:parseonly]
error "You cannot collect without storeconfigs being set"
end
@@ -1009,7 +1010,7 @@ module_eval <<'.,.,', 'grammar.ra', 199
else
args[:form] = val[1]
end
- if args[:form] == :exported and ! Puppet[:storeconfigs]
+ if args[:form] == :exported and ! Puppet[:storeconfigs] and ! Puppet[:parseonly]
error "You cannot collect exported resources without storeconfigs being set"
end
result = ast AST::Collection, args