HomePhorge

(#13296) allow any keyword as resource param name
193e19eb14ffUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#13296) allow any keyword as resource param name

Add list of keywords to grammar.ra
Regenerate parser from grammar
Add parser tests for each keyword as a parameter
Add unless to keyword list in lexer tests

Prior to #13296, the resources did not allow parameter names to be
language keywords. With this commit, resources can use any of the
keywords as a parameter name.

For example this is again legal:
exec { '/bin/echo foo':

unless => '/usr/bin/false',

}

Details

Provenance
Jeff Weiss <jeff.weiss@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU56339d3c0be9: (#13296) 'unless' as a parameter inside a resource causes syntax error
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff Weiss <jeff.weiss@puppetlabs.com> committed rPU193e19eb14ff: (#13296) allow any keyword as resource param name (authored by Jeff Weiss <jeff.weiss@puppetlabs.com>).Mar 27 2012, 1:38 AM