File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 187
187
{% for backend in cinder_backend_name.split(',') %}
188
188
{% set default_backend = (_kubernetes_cinder_etc_secret.resources[0].data['backends.conf'] | b64decode | community.general.from_ini)[backend] %}
189
189
{% set network_interface = hostvars[inventory_hostname][cinder_storage_network_interface]['ipv4']['address'] | default(ansible_default_ipv4.address) %}
190
- {% set network_interface_secondary = hostvars[inventory_hostname][cinder_storage_network_interface_secondary]['ipv4']['address'] %}
191
190
{% set _ = default_backend.__setitem__("target_ip_address", network_interface) %}
192
- {% if (custom_multipath | bool) %}
193
- {% set _ = default_backend.__setitem__("iscsi_secondary_ip_addresses", network_interface_secondary) %}
191
+ {% if ("lvm" in backend) and (custom_multipath | bool) %}
192
+ {% set network_interface_secondary = hostvars[inventory_hostname][cinder_storage_network_interface_secondary]['ipv4']['address'] %}
193
+ {% set _ = default_backend.__setitem__("iscsi_secondary_ip_addresses", network_interface_secondary) %}
194
194
{% endif %}
195
195
{% set _ = rendered_backend.__setitem__(backend, default_backend) %}
196
196
{% endfor %}
You can’t perform that action at this time.
0 commit comments