Remove trailing slash in endpoinds
This patch removes trailing slash in endpoint address in case the path is empty. Co-Authored-By: Vasyl Saienko vsaienko@mirantis.com Change-Id: I11ace7d434b7c43f519d7ec6ac847ef94916202f
This commit is contained in:
parent
4b2d606f1d
commit
370f4e9f5c
@ -15,7 +15,7 @@ apiVersion: v1
|
|||||||
appVersion: v1.0.0
|
appVersion: v1.0.0
|
||||||
description: OpenStack-Helm Helm-Toolkit
|
description: OpenStack-Helm Helm-Toolkit
|
||||||
name: helm-toolkit
|
name: helm-toolkit
|
||||||
version: 0.2.73
|
version: 0.2.74
|
||||||
home: https://docs.openstack.org/openstack-helm
|
home: https://docs.openstack.org/openstack-helm
|
||||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/OpenStack-Helm/OpenStack_Project_OpenStackHelm_vertical.png
|
icon: https://www.openstack.org/themes/openstack/images/project-mascots/OpenStack-Helm/OpenStack_Project_OpenStackHelm_vertical.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -40,9 +40,9 @@ return: |
|
|||||||
{{- $context := index . 3 -}}
|
{{- $context := index . 3 -}}
|
||||||
{{- $endpointMap := index $context.Values.endpoints ( $type | replace "-" "_" ) }}
|
{{- $endpointMap := index $context.Values.endpoints ( $type | replace "-" "_" ) }}
|
||||||
{{- if kindIs "string" $endpointMap.path }}
|
{{- if kindIs "string" $endpointMap.path }}
|
||||||
{{- printf "%s" $endpointMap.path | default "/" -}}
|
{{- printf "%s" $endpointMap.path | default "" -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $endpointPath := index $endpointMap.path $endpoint | default $endpointMap.path.default | default "/" }}
|
{{- $endpointPath := index $endpointMap.path $endpoint | default $endpointMap.path.default | default "" }}
|
||||||
{{- printf "%s" $endpointPath -}}
|
{{- printf "%s" $endpointPath -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -80,4 +80,5 @@ helm-toolkit:
|
|||||||
- 0.2.71 Add snippet with service parameters
|
- 0.2.71 Add snippet with service parameters
|
||||||
- 0.2.72 Add snippet configmap_oslo_policy
|
- 0.2.72 Add snippet configmap_oslo_policy
|
||||||
- 0.2.73 Add ability to get multiple hosts endpoint
|
- 0.2.73 Add ability to get multiple hosts endpoint
|
||||||
|
- 0.2.74 Remove trailing slash in endpoinds
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user