Browse Source

Fix the cinder_registry_volume conditional

Deployments without the cinder registry would fail, because the
`cinder_registry_volume` variable is still set even when we don't
actually create the volume.
Tomas Sedovic 7 years ago
parent
commit
d2be3821ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/static_inventory/templates/inventory.j2

+ 1 - 1
roles/static_inventory/templates/inventory.j2

@@ -46,7 +46,7 @@ lb
 
 # For OSEv3 normal group vars, see ./group_vars/OSEv3.yml
 
-{% if cinder_registry_volume is defined %}
+{% if cinder_registry_volume is defined and 'volume' in cinder_registry_volume %}
 openshift_hosted_registry_storage_openstack_volumeID="{{ cinder_registry_volume.id }}"
 openshift_hosted_registry_storage_volume_size="{{ cinder_registry_volume.volume.size }}Gi"
 {% endif %}