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: I36ecd276ff1e4c16a7728658e8821bae1615916c
Related-Bug: #1820830
changes/88/648188/2
Georgina Shippey 2 months ago
parent
commit
784494a459
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      defaults/main.yml

+ 1
- 1
defaults/main.yml View File

@@ -280,7 +280,7 @@ cinder_backend_rbd_inuse: '{{ (cinder_backends|default("")|to_json).find("cinder
280 280
 #  "volume:delete": ""
281 281
 
282 282
 # Comma separated list of Glance API servers
283
-cinder_glance_api_servers: "{{ (glance_service_internalurl | default('http://localhost')) | netorigin }}"
283
+cinder_glance_api_servers: "{{ (glance_service_internalurl | default('http://localhost')) | urlsplit('scheme') ~ '://' ~ (glance_service_interalurl | default('http://localhost')) | urlsplit('netloc') }}"
284 284
 
285 285
 cinder_service_in_ldap: false
286 286
 

Loading…
Cancel
Save