Skip to content

Commit

Permalink
Ensure symbols work with service and service_actions
Browse files Browse the repository at this point in the history
Fix a spot where we didn't expect a symbol, and be sure it's turned into an array.

Fixes #438.
  • Loading branch information
martinb3 committed Mar 4, 2016
1 parent 0a67d37 commit 782eeb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/provider_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def whyrun_supported?
init_r.run_action(:create)
new_resource.updated_by_last_action(true) if init_r.updated_by_last_action?

new_resource.service_actions.each do |act|
# flatten in an array here, in case the service_actions are a symbol vs. array
[new_resource.service_actions].flatten.each do |act|
passthrough_action(act)
end
end
Expand Down

0 comments on commit 782eeb6

Please sign in to comment.