Iterate over identities in client safely
client.identity is not alwasy defined, pick empty dict by default
Change-Id: Id4e42e4af6cdbe78d5d3ff1b8d825a44b5229c75
diff --git a/glance/client.sls b/glance/client.sls
index 8904b65..5ae39e0 100644
--- a/glance/client.sls
+++ b/glance/client.sls
@@ -7,7 +7,7 @@
{%- if client.cloud_name is defined %}
-{%- for identity_name, identity in client.identity.items() %}
+{%- for identity_name, identity in client.get('identity', {}).items() %}
{%- for image_name, image in identity.image.items() %}
{%- set _image_properties = {} %}