Browse Source

Replace usage of netloc filters to urlsplit

Removed the reference to netorigin as it will be taken out from openstack-ansible-plugins
Now using ansible 2.4's urlsplit filter as a replacement.

Change-Id: I4d8134e04d751e7506e21cd14424898c28200cb3
Related-Bug: #1820830
changes/90/648190/6
Georgina Shippey 2 months ago
parent
commit
78db69714b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      defaults/main.yml

+ 1
- 1
defaults/main.yml View File

@@ -25,7 +25,7 @@ ironic_service_setup_host: "{{ openstack_service_setup_host | default('localhost
25 25
 ironic_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((ironic_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
26 26
 
27 27
 # Comma separated list of Glance API servers
28
-ironic_glance_api_servers: "{{ (glance_service_internalurl | default('http://localhost')) | netorigin }}"
28
+ironic_glance_api_servers: "{{ (glance_service_internalurl | default('http://localhost')) | urlsplit('scheme') ~ '://' ~ (glance_service_internalurl | default('http://localhost')) | urlsplit('netloc') }}"
29 29
 
30 30
 # Set the package install state for distribution and pip packages
31 31
 # Options are 'present' and 'latest'

Loading…
Cancel
Save