Set a default Region
This patch fixes an issue that occurs if there is no 'identity'
attribute.
Change-Id: Ib87a07a5884bdeb3922ac4d831c67e31bfcef83a
diff --git a/cinder/meta/sensu.yml b/cinder/meta/sensu.yml
index 6ab150a..8404d03 100644
--- a/cinder/meta/sensu.yml
+++ b/cinder/meta/sensu.yml
@@ -1,5 +1,5 @@
{%- from "cinder/map.jinja" import controller with context %}
-{%- set region = controller.identity.region %}
+{%- set region = controller.get('identity', {}).get('region', 'RegionOne') %}
check:
local_cinder_api_proc:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C cinder-api -u cinder -c 1:1024"