summaryrefslogtreecommitdiff
path: root/lib/chef/resource/erl_call.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/erl_call.rb')
-rw-r--r--lib/chef/resource/erl_call.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/resource/erl_call.rb b/lib/chef/resource/erl_call.rb
index c6d45c7aca..b025259b4c 100644
--- a/lib/chef/resource/erl_call.rb
+++ b/lib/chef/resource/erl_call.rb
@@ -29,6 +29,8 @@ class Chef
identity_attr :code
+ default_action :run
+
def initialize(name, run_context=nil)
super
@@ -37,9 +39,6 @@ class Chef
@distributed = false # if you want to have a distributed erlang node
@name_type = "sname" # type of erlang hostname name or sname
@node_name = "chef@localhost" # the erlang node hostname
-
- @action = "run"
- @allowed_actions.push(:run)
end
def code(arg=nil)