Fix bug
Change-Id: I87ee15bb728a605e0082e374dfbcf4679ee59ae9
diff --git a/playbooks/setup-openstack-storpool/pre.yaml b/playbooks/setup-openstack-storpool/pre.yaml
index 5674e4c..9da5540 100644
--- a/playbooks/setup-openstack-storpool/pre.yaml
+++ b/playbooks/setup-openstack-storpool/pre.yaml
@@ -71,8 +71,8 @@
- --disable-port-security
- "{{ item.port }}"
loop:
- - { network: "{{ network_sp0 }}", subnet: "{{ subnet_sp0 }}", ip: "{{ port_node_2_ip_sp0 }}", port: "{{ port_node_2_sp0 }}" }
- - { network: "{{ network_sp1 }}", subnet: "{{ subnet_sp1 }}", ip: "{{ port_node_2_ip_sp1 }}", port: "{{ port_node_2_sp1 }}" }
+ - { network: "{{ network_sp0 }}", subnet: "{{ subnet_sp0 }}", ip: "{{ ip_node_2_sp0 }}", port: "{{ port_node_2_sp0 }}" }
+ - { network: "{{ network_sp1 }}", subnet: "{{ subnet_sp1 }}", ip: "{{ ip_node_2_sp1 }}", port: "{{ port_node_2_sp1 }}" }
when: storpool_connection == "block"
- name: Attach the StorPool Ports to the StorPool Node