summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/puppet/type.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb
index 89e20c067..1d2eea54c 100644
--- a/lib/puppet/type.rb
+++ b/lib/puppet/type.rb
@@ -1384,8 +1384,13 @@ class Type < Puppet::Element
obj = nil
# Support them passing objects directly, to save some effort.
if dep.is_a? Puppet::Type
+ self.info "requiring %s" % dep.name
type = dep.class.name
obj = dep
+
+ # Now change our dependency to just the string, instead of
+ # the object itself.
+ dep = dep.name
else
# Skip autorequires that we aren't managing
unless obj = typeobj[dep]