Skip to content

Commit

Permalink
#402: fix conflict between CR_ACTION to the step and ACTION to the sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
lrochette committed Oct 12, 2021
1 parent f771571 commit 76745a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion incubating/service-now/lib/snow.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def checkSysid(sysid):
def main():
global DEBUG

ACTION = os.getenv('CR_ACTION', 'createCR').lower()
ACTION = os.getenv('ACTION').lower()
USER = os.getenv('SN_USER')
PASSWORD = os.getenv('SN_PASSWORD')
INSTANCE = os.getenv('SN_INSTANCE')
Expand Down
8 changes: 4 additions & 4 deletions incubating/service-now/step.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ spec:
title: Use REST API to close the CR
image: lrochette/service-now:1.1.0
environment:
- CR_ACTION=closeCR
- ACTION=closecr
[[ range $key, $val := .Arguments ]]
- '[[ $key ]]=[[ $val ]]'
[[- end ]]
Expand All @@ -164,7 +164,7 @@ spec:
title: Use REST API to close the CR
image: lrochette/service-now:1.1.0
environment:
- CR_ACTION=updateCR
- ACTION=updatecr
[[ range $key, $val := .Arguments ]]
- '[[ $key ]]=[[ $val ]]'
[[- end ]]
Expand All @@ -175,7 +175,7 @@ spec:
title: Use REST API to create a CR
image: lrochette/service-now:1.1.0
environment:
- CR_ACTION=createCR
- ACTION=createcr
[[ range $key, $val := .Arguments ]]
- '[[ $key ]]=[[ $val ]]'
[[- end ]]
Expand All @@ -193,7 +193,7 @@ spec:
title: ServiceNow callback setup
image: lrochette/service-now:1.1.0
environment:
- CR_ACTION=callback
- ACTION=callback
[[ range $key, $val := .Arguments ]]
- '[[ $key ]]=[[ $val ]]'
[[- end ]]
Expand Down

0 comments on commit 76745a0

Please sign in to comment.