sensu/sensu-community-plugins — pull request #487 by ggrossman (2014-02-21 10:00:04+00:00)
Title: Corrected the parsing of the use_ami_role setting from sns.json.

This statement
settings['sns']['use_ami_role'] || true
doesn't work for {"use_ami_role":false} because false || true == true.
As a result, useAmiRole would always return true no matter what the setting was in sns.json.
Introduced a nil check instead.