Skip to content

Commit

Permalink
Allow a resource ref as a resource type
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney committed Jan 26, 2012
1 parent 5fcde91 commit 3dee588
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion puppetparse.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,10 @@ sub apply_defaults {
sub get_parser_data {
my ($self) = @_;
my $parser_data = [
{ type => 'token', token => ['NAME', 'CLASSREF', 'CLASS'], name => 'restype' },
{ type => 'any', name => 'restype', members => [
{ type => 'class', class => 'PuppetParser::ResourceRef', name => 'restype' },
{ type => 'token', token => ['NAME', 'CLASSREF', 'CLASS'], name => 'restype' },
]},
{ type => 'group', optional => 1, members => [
{ type => 'token', token => 'LCOLLECT' },
{ type => 'class', class => 'PuppetParser::Expression', args => { term => ['RCOLLECT'] }, optional => 1, name => 'tags' },
Expand Down

0 comments on commit 3dee588

Please sign in to comment.