summaryrefslogtreecommitdiff
path: root/lib/chef/provider/mount
diff options
context:
space:
mode:
authorLamont Granquist <lamont@getchef.com>2014-05-23 00:19:46 +0000
committerLamont Granquist <lamont@scriptkiddie.org>2014-05-29 10:30:28 -0700
commitee54a3788821b70f6e9ad3582e858a8e816551e8 (patch)
treea5bd4c891dcdaa6d7c87eb27ae5f89a6a5b83d60 /lib/chef/provider/mount
parent834cd7d90b9c7934080103c7bb3dbdc0b57a2abd (diff)
downloadchef-ee54a3788821b70f6e9ad3582e858a8e816551e8.tar.gz
fixes and func tests
Diffstat (limited to 'lib/chef/provider/mount')
-rw-r--r--lib/chef/provider/mount/solaris.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/provider/mount/solaris.rb b/lib/chef/provider/mount/solaris.rb
index cd14aace90..0eb1b6ccb3 100644
--- a/lib/chef/provider/mount/solaris.rb
+++ b/lib/chef/provider/mount/solaris.rb
@@ -39,11 +39,12 @@ class Chef
end
def load_current_resource
- current_resource = Chef::Resource::Mount.new(new_resource.name)
+ self.current_resource = Chef::Resource::Mount.new(new_resource.name)
current_resource.mount_point(new_resource.mount_point)
current_resource.device(new_resource.device)
current_resource.mounted(mounted?)
current_resource.enabled(enabled?)
+ current_resource
end
protected
@@ -186,7 +187,7 @@ class Chef
end
def device_should_exist?
- new_resource.device !~ /:/ && new_resource.device !~ /\/\// && new_resource.device != "tmpfs" && new_resource.fstype != 'fuse'
+ new_resource.device !~ /:/ && new_resource.device !~ /\/\// && new_resource.fstype != "tmpfs" && new_resource.fstype != 'fuse'
end
def device_mount_regex