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
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] My change requires a change to the documentation.
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).`, afterwards the chef run succeeds.
node['sensu']['use_ssl']
was set to false. Before the change the chef run fails withERROR: undefined method
port' for #Types of changes
Checklist: