diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-06-02 14:51:28 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-06-02 14:51:28 -0700 |
commit | c007919ab4c8717eb749e16a016b94e60d879598 (patch) | |
tree | 02431ff2ac24f77adf0c6e8807d4e3009b68e2d7 /lib/chef/provider/mount/solaris.rb | |
parent | eb5b359cb7e88fc10f418223c23ba143793ce89c (diff) | |
download | chef-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.rb | 4 |
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") |