summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-03-23 20:58:33 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-03-23 20:58:33 -0700
commitf543b509ba61dd347512e8a9e3153a49a2a8cb6b (patch)
treedc7275a6ee0c731391ef9ce46af5d3610f21ea9a /lib
parentc74068fffb387955cff8b32c2c984c782ee1e0a0 (diff)
downloadchef-f543b509ba61dd347512e8a9e3153a49a2a8cb6b.tar.gz
Bringing the file provider to 100 coverage
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/file.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider/file.rb b/lib/chef/provider/file.rb
index e59fd8bb7d..c0805674ec 100644
--- a/lib/chef/provider/file.rb
+++ b/lib/chef/provider/file.rb
@@ -32,6 +32,7 @@ class Chef
@current_resource.owner(cstats.uid)
@current_resource.group(cstats.gid)
@current_resource.mode("%o" % (cstats.mode & 007777))
+ checksum
end
@current_resource
end
@@ -72,7 +73,7 @@ class Chef
@set_group_id = @new_resource.group.to_i
@set_group_id == @current_resource.group
else
- group_info = Etc.getpwnam(@new_resource.group)
+ group_info = Etc.getgrnam(@new_resource.group)
@set_group_id = group_info.gid
@set_group_id == @current_resource.group
end