- Introduction of composite namevars places
  extra restrictions on resource title format
  (in order to guarantee uniqueness
  it should be based on all namevars)
- Puppet was not explicitly handling the case
  where the title is invalid

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

diff --git a/lib/puppet/resource.rb b/lib/puppet/resource.rb
index 59e387d..2426ed2 100644
--- a/lib/puppet/resource.rb
+++ b/lib/puppet/resource.rb
@@ -426,6 +426,7 @@ class Puppet::Resource
           return h
         end
       }
+      raise ArgumentError, "invalid resource #{self.to_s} does not match any 
title patterns"
     else
       return { :name => title.to_s }
     end
-- 
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