diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-15 18:28:30 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-06-15 18:28:30 +0000 |
| commit | 084a31da45e5069ec485b502e388604591857200 (patch) | |
| tree | 863203bc9e1550e106bd3c384f1e6f6f83dc570c /lib | |
| parent | bdb9110b358e7701e3b120cfbab6ca99253460a2 (diff) | |
fixing autorequire message to include the object type
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1291 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/type.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb index d51d243a2..064b759f2 100644 --- a/lib/puppet/type.rb +++ b/lib/puppet/type.rb @@ -1428,9 +1428,9 @@ class Type < Puppet::Element # Collect the current prereqs list.each { |dep| obj = nil + type = 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 @@ -1445,7 +1445,7 @@ class Type < Puppet::Element end # Skip autorequires that we already require next if self.requires?(obj) - #self.info "Auto-requiring %s %s" % [obj.class.name, obj.name] + info "Auto-requiring %s %s" % [obj.class.name, obj.name] self[:require] = [type, dep] } |
