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: I64495ec530245a6355a9f0b6c84bc047ea2687b1
Related-Bug: #1820830
changes/89/648189/2
Georgina Shippey 2 months ago
parent
commit
4645b4dd04
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      defaults/main.yml

+ 1
- 1
defaults/main.yml View File

@@ -345,7 +345,7 @@ nova_resume_guests_state_on_host_boot: False
345 345
 # nova_default_schedule_zone: nova
346 346
 
347 347
 # Comma separated list of Glance API servers
348
-nova_glance_api_servers: "{{ (glance_service_internalurl | default('http://localhost')) | netorigin }}"
348
+nova_glance_api_servers: "{{ (glance_service_internalurl | default('http://localhost')) | urlsplit('scheme') ~ '://' ~ (glance_service_internalurl | default('http://localhost')) | urlsplit('netloc') }}"
349 349
 
350 350
 nova_network_type: linuxbridge
351 351
 

Loading…
Cancel
Save