diff options
Diffstat (limited to 'lib/chef/provider/env.rb')
-rw-r--r-- | lib/chef/provider/env.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/env.rb b/lib/chef/provider/env.rb index 490fa31146..b8b9d99846 100644 --- a/lib/chef/provider/env.rb +++ b/lib/chef/provider/env.rb @@ -123,7 +123,7 @@ class Chef end def action_delete - if @key_exists && !delete_element + if ( ENV[new_resource.key_name] || @key_exists ) && !delete_element delete_env Chef::Log.info("#{new_resource} deleted") new_resource.updated_by_last_action(true) |