From c0d5037d11643fd551fdc9f20a9e0ba196c5345a Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Thu, 19 Feb 2009 16:51:50 -0600 Subject: Removing or fixing old tests Most of these were just obsolete tests that have been sitting around and broke with recent internal changes. Signed-off-by: Luke Kanies --- lib/puppet/type/file/checksum.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet') diff --git a/lib/puppet/type/file/checksum.rb b/lib/puppet/type/file/checksum.rb index 7915c3888..3b748631a 100755 --- a/lib/puppet/type/file/checksum.rb +++ b/lib/puppet/type/file/checksum.rb @@ -69,7 +69,7 @@ Puppet::Type.type(:file).newproperty(:checksum) do # Store the checksum in the data cache, or retrieve it if only the # sum type is provided. def cache(type, sum = nil) - return unless resource.catalog.host_config? + return unless c = resource.catalog and c.host_config? unless type raise ArgumentError, "A type must be specified to cache a checksum" end @@ -262,7 +262,7 @@ Puppet::Type.type(:file).newproperty(:checksum) do # Store the new sum to the state db. def updatesum(newvalue) - return unless resource.catalog.host_config? + return unless c = resource.catalog and c.host_config? result = false # if we're replacing, vs. updating -- cgit