DAaaS: Fixing dashborad provisioning 15/91715/1
authorLianhao Lu <lianhao.lu@intel.com>
Fri, 19 Jul 2019 06:45:24 +0000 (14:45 +0800)
committerLianhao Lu <lianhao.lu@intel.com>
Fri, 19 Jul 2019 06:46:28 +0000 (14:46 +0800)
Fixed the multiline indicator usage that breaks the provisioning grafana
dashboards from local file.

Change-Id: If97f06119b10dad70eea74f68b180280978ad1c7
Issue-ID: ONAPARC-393
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
vnfs/DAaaS/deploy/visualization/charts/grafana/templates/dashboards-json-configmap.yaml

index bd46add..567da7f 100755 (executable)
@@ -15,9 +15,10 @@ metadata:
 data:
 {{- range $key, $value := $dashboards }}
 {{- if (or (hasKey $value "json") (hasKey $value "file")) }}
-{{ print $key | indent 2 }}.json: |-
+{{ print $key | indent 2 }}.json:
 {{- if hasKey $value "json" }}
-{{ $value.json | indent 4 }}
+    |-
+{{ $value.json | indent 6 }}
 {{- end }}
 {{- if hasKey $value "file" }}
 {{ toYaml ( $files.Get $value.file ) | indent 4}}