diff options
author | sersut <serdar@opscode.com> | 2013-06-04 16:41:38 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-06-04 16:41:38 -0700 |
commit | 5b2d8cd3434e1a7d54908e82d5f582972fcecf3c (patch) | |
tree | b048be4fb2c8c546b3ad79fe613e3e208fdf8377 /lib/chef/mixin/file_class.rb | |
parent | a2c5f2a0f52b82c1720558f476d7802701e9f1c7 (diff) | |
download | chef-5b2d8cd3434e1a7d54908e82d5f582972fcecf3c.tar.gz |
Make sure file_class doesn't raise an exception when links are not supported on platform.
Diffstat (limited to 'lib/chef/mixin/file_class.rb')
-rw-r--r-- | lib/chef/mixin/file_class.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/chef/mixin/file_class.rb b/lib/chef/mixin/file_class.rb index ed2cda47db..f6a663daed 100644 --- a/lib/chef/mixin/file_class.rb +++ b/lib/chef/mixin/file_class.rb @@ -25,15 +25,6 @@ class Chef def file_class @host_os_file ||= if Chef::Platform.windows? require 'chef/win32/file' - begin - Chef::ReservedNames::Win32::File.verify_links_supported! - rescue Chef::Exceptions::Win32APIFunctionNotImplemented => e - message = "Link resource is not supported on this version of Windows" - message << ": #{node[:kernel][:name]}" if node - message << " (#{node[:platform_version]})" if node - Chef::Log.fatal(message) - raise e - end Chef::ReservedNames::Win32::File else ::File |