Support optional comma at the end arguments lists for parameterized
class and user defined resources. This makes it behave similar to
resource attributes.

Require make -C lib/puppet/parser after updating the grammer.ra file.

Nan
---
 lib/puppet/parser/grammar.ra |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/puppet/parser/grammar.ra b/lib/puppet/parser/grammar.ra
index ecb27f3..ba7413f 100644
--- a/lib/puppet/parser/grammar.ra
+++ b/lib/puppet/parser/grammar.ra
@@ -673,7 +673,7 @@ argumentlist: nil
   | LPAREN nothing RPAREN {
     result = nil
 }
-  | LPAREN arguments RPAREN {
+  | LPAREN arguments endcomma RPAREN {
     result = val[1]
     result = [result] unless result[0].is_a?(Array)
 }
-- 
1.7.3.5

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