Only store neutron facts if neutron is enabled

The neutron_networks variable won't exist if neutron isn't enabled for
tempest. This causes issues for services (such as ceilometer) that don't
use tempest with neutron.

Change-Id: If601c321599ac513824df831774c85cef6b8b9bb
This commit is contained in:
Andy McCrae
2016-11-14 17:30:24 +00:00
parent b520e97e62
commit e74ddcadf4

View File

@@ -198,6 +198,7 @@
- name: Store neutron public network id
set_fact:
tempest_neutron_public_network_id: "{{ tempest_service_available_neutron | ternary(neutron_networks.public.id, '') }}"
when: tempest_service_available_neutron | bool
- name: Ensure private subnet exists
os_subnet: