summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-12 23:00:52 -0600
committerLuke Kanies <luke@madstop.com>2008-02-12 23:00:52 -0600
commitbe58bb5c4bc19e59685e0a8953eaf2d3b7844110 (patch)
tree6a2dd1fc88f97f4a76cd19d2459eb88408c877bf /lib
parent11ef70aa357a081fd14158e70acc8d943b5caffa (diff)
parent98dbfa2865ad270d5fd9821c6518f6f30ce9aec4 (diff)
downloadpuppet-be58bb5c4bc19e59685e0a8953eaf2d3b7844110.tar.gz
puppet-be58bb5c4bc19e59685e0a8953eaf2d3b7844110.tar.xz
puppet-be58bb5c4bc19e59685e0a8953eaf2d3b7844110.zip
Merge branch '0.24.x'
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/indirector/terminus.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/indirector/terminus.rb b/lib/puppet/indirector/terminus.rb
index a0623b284..3015c8a37 100644
--- a/lib/puppet/indirector/terminus.rb
+++ b/lib/puppet/indirector/terminus.rb
@@ -66,6 +66,7 @@ class Puppet::Indirector::Terminus
subclass.terminus_type = self.name
# Our subclass is specifically associated with an indirection.
+ raise("Invalid name %s" % longname) unless names.length > 0
indirection_name = names.pop.sub(/^[A-Z]/) { |i| i.downcase }.gsub(/[A-Z]/) { |i| "_" + i.downcase }.intern
if indirection_name == "" or indirection_name.nil?