summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-02-19 16:51:50 -0600
committerLuke Kanies <luke@madstop.com>2009-02-19 17:51:22 -0600
commitc0d5037d11643fd551fdc9f20a9e0ba196c5345a (patch)
treec206a8dcd267b61d6ed1bf17d374558126672992 /lib
parent262937ff6e505bbf86d15500279ff23398f9e1c8 (diff)
downloadpuppet-c0d5037d11643fd551fdc9f20a9e0ba196c5345a.tar.gz
puppet-c0d5037d11643fd551fdc9f20a9e0ba196c5345a.tar.xz
puppet-c0d5037d11643fd551fdc9f20a9e0ba196c5345a.zip
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 <luke@madstop.com>
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/type/file/checksum.rb4
1 files changed, 2 insertions, 2 deletions
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