lib/puppet/provider/parsedfile.rb in puppet-0.23.2 vs lib/puppet/provider/parsedfile.rb in puppet-0.24.0
- old
+ new
@@ -243,11 +243,11 @@
end
end
# Initialize the object if necessary.
def self.target_object(target)
- @target_objects[target] ||= @filetype.new(target)
+ @target_objects[target] ||= filetype.new(target)
@target_objects[target]
end
# Find all of the records for a given target
@@ -354,12 +354,11 @@
# Mark both the resource and provider target as modified.
def mark_target_modified
if defined? @resource and restarget = @resource.should(:target) and restarget != @property_hash[:target]
self.class.modified(restarget)
end
- if @property_hash[:target] != :absent
+ if @property_hash[:target] != :absent and @property_hash[:target]
self.class.modified(@property_hash[:target])
end
end
end
-# $Id: parsedfile.rb 2750 2007-08-06 17:59:37Z luke $