sensu / sensu-chef

Sensu Chef cookbook.
https://supermarket.chef.io/cookbooks/sensu
Apache License 2.0
222 stars 280 forks source link

Fix attribute syntax for Chef 13 #557

Closed mivok closed 7 years ago

mivok commented 7 years ago

Description

Chef 13 no longer accepts node['foo'].bar for attributes, and needs node['foo']['bar'] to be used instead. This change fixes the syntax that would otherwise cause a chef run failure when use_ssl is set to false.

Motivation and Context

This is needed when using Chef 13, and when you have ssl disabled.

How Has This Been Tested?

Test kitchen including the sensu cookbook and the latest version of chef client (13.0.118). node['sensu']['use_ssl'] was set to false. Before the change the chef run fails with ERROR: undefined methodport' for #`, afterwards the chef run succeeds.

Types of changes

Checklist:

tas50 commented 7 years ago

👍