- it was previously hardcoded to use :name param
  which does not work for composite namevars.

Signed-off-by: Dan Bode <[email protected]>
---
Local-branch: issue/master/7629
 lib/puppet/provider.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/puppet/provider.rb b/lib/puppet/provider.rb
index 4456feb..9cccfaf 100644
--- a/lib/puppet/provider.rb
+++ b/lib/puppet/provider.rb
@@ -258,7 +258,7 @@ class Puppet::Provider
   end
 
   def name
-    if n = @property_hash[:name]
+    if n = self.class.resource_type.namevar_join(@property_hash)
       return n
     elsif self.resource
       resource.name
-- 
1.6.5.1

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