diff --git a/lib/ansible/modules/extras/monitoring/sensu_check.py b/lib/ansible/modules/extras/monitoring/sensu_check.py index a1bd36ca66..e1c51463ae 100644 --- a/lib/ansible/modules/extras/monitoring/sensu_check.py +++ b/lib/ansible/modules/extras/monitoring/sensu_check.py @@ -182,6 +182,7 @@ def sensu_check(module, path, name, state='present', backup=False): except ImportError: import simplejson as json + stream = None try: try: stream = open(path, 'r')