aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2018-01-22 16:11:48 +0800
committerYifei Xue <xueyifei@huawei.com>2018-01-24 09:47:22 +0000
commit9fa93b10be08946e208a2a143ed6dfe48a4a4ed6 (patch)
treece734ebc5c764f27b6785218670c873a8ab5c848
parentd88d2158f94c72639b3f0ec635553bc0a7c82755 (diff)
Fix subnet create fail when disable ext-net
JIRA: COMPASS-575 Add missing condition check for subnet create task. Change-Id: Ibd25a7e7e4edd40be6b0f14bb8bffb828a65f648 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> (cherry picked from commit b096febb727a7cb9c6b72418c422b3affe106134)
-rw-r--r--deploy/adapters/ansible/roles/post-openstack/tasks/main.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml b/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml
index 7022a4b..fb0dc67 100644
--- a/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml
@@ -40,6 +40,7 @@
--subnet-range "{{ public_net_info.floating_ip_cidr }}" \
"{{ public_net_info.subnet }}"
when:
+ - public_net_info.enable == "True"
- inventory_hostname == groups['utility_all'][0]
- name: create openstack flavors