
The gotpl script that determines if a cinder backend is ceph-backed is not properly handling additional backends that does not have the driver "cinder.volume.drivers.rbd.RBDDriver". This patch set fixes the gotpl so it no longer causes a rendering problem. Change-Id: I902e82301019531832afebce7a1e2f0b28bac8f3 Signed-off-by: Tin Lam <tin@irrational.io>
21 lines
794 B
Smarty
21 lines
794 B
Smarty
{{/*
|
|
Copyright 2017 The Openstack-Helm Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
{{- define "cinder.utils.is_ceph_backend" -}}
|
|
{{- $backend := index . "backend" -}}
|
|
{{- printf "%v" (and ( kindIs "map" $backend ) ( eq $backend.volume_driver "cinder.volume.drivers.rbd.RBDDriver" )) -}}
|
|
{{- end -}}
|