diff options
Diffstat (limited to 'lib/chef/resource/env.rb')
-rw-r--r-- | lib/chef/resource/env.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/resource/env.rb b/lib/chef/resource/env.rb index d74b4feee0..da7d48f062 100644 --- a/lib/chef/resource/env.rb +++ b/lib/chef/resource/env.rb @@ -28,13 +28,14 @@ class Chef use_automatic_resource_name provides :env, os: "windows" + default_action :create + allowed_actions :create, :delete, :modify + def initialize(name, run_context=nil) super @key_name = name @value = nil - @action = :create @delim = nil - @allowed_actions.push(:create, :delete, :modify) end def key_name(arg=nil) |