diff options
-rw-r--r-- | lib/chef/chef_fs/command_line.rb | 6 | ||||
-rw-r--r-- | spec/unit/mixin/openssl_helper_spec.rb | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/chef/chef_fs/command_line.rb b/lib/chef/chef_fs/command_line.rb index a33d7cc903..15ee15ae30 100644 --- a/lib/chef/chef_fs/command_line.rb +++ b/lib/chef/chef_fs/command_line.rb @@ -291,8 +291,10 @@ class Chef rescue => e "!!! Unable to diff #{old_path} and #{new_path} due to #{e}" ensure - old_tempfile.close! - new_tempfile.close! + # old_tempfile.close! + # new_tempfile.close! + old_tempfile.close + new_tempfile.close end end end diff --git a/spec/unit/mixin/openssl_helper_spec.rb b/spec/unit/mixin/openssl_helper_spec.rb index 3116651e43..1073b648de 100644 --- a/spec/unit/mixin/openssl_helper_spec.rb +++ b/spec/unit/mixin/openssl_helper_spec.rb @@ -178,7 +178,8 @@ describe Chef::Mixin::OpenSSLHelper do end after(:each) do - @keyfile.unlink + # @keyfile.unlink + @keyfile.close end end |