Set 'show_image_direct_url' in openstack >= kilo

To expose the image location in the API for versions below Mitaka,
show_image_direct_url should be set to True. For Mitaka specifically,
show_multiple_locations should also be set.

This change sets both of these values when show_multiple_locations is
set in the charm.

Change-Id: Ibb3b6ecd92834f6345d21801942da0d3466d5bdc
Closes-Bug: #1645703
This commit is contained in:
Shane Peters 2016-12-22 14:52:07 -05:00
parent 6c7edc8221
commit 92c06de6aa
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ registry_client_protocol = http
{% if expose_image_locations -%}
show_multiple_locations = {{ expose_image_locations }}
show_image_direct_url = {{ expose_image_locations }}
{% endif -%}
{% if api_config_flags -%}

View File

@ -26,6 +26,7 @@ registry_client_protocol = http
{% if expose_image_locations -%}
show_multiple_locations = {{ expose_image_locations }}
show_image_direct_url = {{ expose_image_locations }}
{% endif -%}
{% if api_config_flags -%}