diff options
| author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-07-28 19:37:11 +0200 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-08-01 11:15:29 +1000 |
| commit | b45ccf8d38a10d3f5226cbabe494240901e4e383 (patch) | |
| tree | 9e5e8bbbd88ce7f66dc5a42c6aa7c2c6c57e7b4e /lib/puppet/parser/grammar.ra | |
| parent | 58a73b5c68485dc5d41a46936c31e5fad5f037b5 (diff) | |
| download | puppet-b45ccf8d38a10d3f5226cbabe494240901e4e383.tar.gz puppet-b45ccf8d38a10d3f5226cbabe494240901e4e383.tar.xz puppet-b45ccf8d38a10d3f5226cbabe494240901e4e383.zip | |
Implement node matching with regexes
This patch enhance AST::HostName to support regexes, and modifies
the parser to allow regex to be used as node name.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>]
Diffstat (limited to 'lib/puppet/parser/grammar.ra')
| -rw-r--r-- | lib/puppet/parser/grammar.ra | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/parser/grammar.ra b/lib/puppet/parser/grammar.ra index ed55d2150..4c7421145 100644 --- a/lib/puppet/parser/grammar.ra +++ b/lib/puppet/parser/grammar.ra @@ -699,6 +699,7 @@ hostname: NAME { result = val[0][:value] } | SQTEXT { result = val[0][:value] } | DQTEXT { result = val[0][:value] } | DEFAULT { result = val[0][:value] } + | regex nil: { result = nil |
