Skip to content

Commit ca34555

Browse files
committed
add if condition
1 parent 2995f61 commit ca34555

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
{{if exists "/pki/issue/my-role/www.example.com/certificate"}}
12
{{- $certificate := getv "/pki/issue/my-role/www.example.com/certificate" -}}
23
{{- $private_key := getv "/pki/issue/my-role/www.example.com/private_key" -}}
34
{
45
"certificate": "{{ replace $certificate "\n" "\\n" -1 }}",
56
"key": "{{ replace $private_key "\n" "\\n" -1 }}"
6-
}
7+
}
8+
{{end}}

0 commit comments

Comments
 (0)