From 4645b4dd043eb9dc679941e7d7de0b6f74eae03f Mon Sep 17 00:00:00 2001 From: Georgina Shippey Date: Wed, 27 Mar 2019 17:31:09 +0000 Subject: [PATCH] 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 --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 1c26fec8..5090abc5 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -345,7 +345,7 @@ nova_resume_guests_state_on_host_boot: False # nova_default_schedule_zone: nova # Comma separated list of Glance API servers -nova_glance_api_servers: "{{ (glance_service_internalurl | default('http://localhost')) | netorigin }}" +nova_glance_api_servers: "{{ (glance_service_internalurl | default('http://localhost')) | urlsplit('scheme') ~ '://' ~ (glance_service_internalurl | default('http://localhost')) | urlsplit('netloc') }}" nova_network_type: linuxbridge