Skip to content

Commit

Permalink
#402: fix go template syntax with eq instead of ==
Browse files Browse the repository at this point in the history
  • Loading branch information
lrochette committed Oct 12, 2021
1 parent 21c4cee commit f771571
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 3 deletions.
6 changes: 3 additions & 3 deletions incubating/service-now/step.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ spec:
}
}
stepsTemplate: |-
[[ if .Arguments.CR_ACTION == "closeCR" ]]
[[ if eq .Arguments.CR_ACTION "closeCR" ]]
closeCR:
name: Close a ServiceNow Change Request
title: Use REST API to close the CR
Expand All @@ -158,7 +158,7 @@ spec:
- '[[ $key ]]=[[ $val ]]'
[[- end ]]
[[ end ]]
[[ if .Arguments.CR_ACTION == "updateCR" ]]
[[ if eq .Arguments.CR_ACTION "updateCR" ]]
updateCR:
name: Update a ServiceNow Change Request
title: Use REST API to close the CR
Expand All @@ -169,7 +169,7 @@ spec:
- '[[ $key ]]=[[ $val ]]'
[[- end ]]
[[ end ]]
[[ if .Arguments.CR_ACTION == "createCR" ]]
[[ if eq .Arguments.CR_ACTION "createCR" ]]
createCR:
name: Create a ServiceNow Change Request
title: Use REST API to create a CR
Expand Down
Loading

0 comments on commit f771571

Please sign in to comment.