Skip to content

Commit

Permalink
fix incorrect matching string with symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
axelrtgs authored Aug 2, 2017
1 parent 4418d38 commit 9403ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
current_resource.parameters.each do |key, _value|
execute "Reset parameter #{key} to default" do
command ::NSSM.command(new_resource.nssm_binary, :reset, new_resource.servicename, key)
not_if { params.key?(key) || params_no_default.include?(key) }
not_if { params.key?(key.to_sym) || params_no_default.include?(key) }
end
end unless current_resource.nil?
end
Expand Down

0 comments on commit 9403ebe

Please sign in to comment.