puppetlabs/puppet — pull request #284 by MaxMartin (2011-12-16 21:40:08+00:00)
Title: Ticket/2.7.x/10109 composite namevars

The code for creating the resourcefile was directly calling
resource.name_var, which was causing problems with resources that have
composite namevars (since, for these, Type#name_var will return false).
This patch sanitizes the process by first checking whether there is a
single namevar, and simply calling resource.ref if there is not one.

Reviewed-by: Matt Robinson

Patch fixed the bug for the user who reported it (see: http://projects.puppetlabs.com/issues/10109)