summaryrefslogtreecommitdiff
path: root/lib/chef/provider/mount/solaris.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-06-02 14:51:28 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-06-02 14:51:28 -0700
commitc007919ab4c8717eb749e16a016b94e60d879598 (patch)
tree02431ff2ac24f77adf0c6e8807d4e3009b68e2d7 /lib/chef/provider/mount/solaris.rb
parenteb5b359cb7e88fc10f418223c23ba143793ce89c (diff)
downloadchef-c007919ab4c8717eb749e16a016b94e60d879598.tar.gz
move validation to resource code
Diffstat (limited to 'lib/chef/provider/mount/solaris.rb')
-rw-r--r--lib/chef/provider/mount/solaris.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/chef/provider/mount/solaris.rb b/lib/chef/provider/mount/solaris.rb
index bb76831559..fb4150e810 100644
--- a/lib/chef/provider/mount/solaris.rb
+++ b/lib/chef/provider/mount/solaris.rb
@@ -48,10 +48,6 @@ class Chef
end
def define_resource_requirements
- if device_type != :device
- raise Chef::Exceptions::Mount, "Mount resource can only be of device_type ':device' on Solaris"
- end
-
requirements.assert(:mount, :remount) do |a|
a.assertion { !device_should_exist? || ::File.exist?(device) }
a.failure_message(Chef::Exceptions::Mount, "Device #{device} does not exist")