Skip to content

Commit

Permalink
Fix format in message when using int
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Dec 18, 2024
1 parent c1989c4 commit e8474b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions workflows/modify-vm-resources/modify-vm-resources.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ functions:
operation: '{
"result": {
"completedWith":"error",
"message": "VM " + .vm_name + " in namespace " + .vm_namespace + " not ready after the update after checking" + .vmStatusRunningRetries + " times: " + .vm.status
"message": "VM " + .vm_name + " in namespace " + .vm_namespace + " not ready after the update after checking" + (.vmStatusRunningRetries|tostring) + " times: " + .vm.status
}
}'
- name: errorAuthorizationDeniedResult
Expand Down Expand Up @@ -322,7 +322,7 @@ states:
entityRef: .recipients
payload:
title: '"VM " + .vm_name + " in namespace " + .vm_namespace + " not ready"'
description: '"VM " + .vm_name + " in namespace " + .vm_namespace + " not ready after the update after checking" + .vmStatusRunningRetries + " times: " + .vm.status'
description: '"VM " + .vm_name + " in namespace " + .vm_namespace + " not ready after the update after checking" + (.vmStatusRunningRetries|tostring) + " times: " + .vm.status'
topic: "Modify VM Resources workflow"
severity: "high"
- name: setOutput
Expand Down
4 changes: 2 additions & 2 deletions workflows/request-vm-cnv/request-vm-cnv.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ functions:
operation: '{
"result": {
"completedWith":"error",
"message": "VM " + .vm_name + " in namespace " + .vm_namespace + " using image " + .vm_image +" not ready after " + .vmStatusRunningRetries + " retries: " + .vm.status
"message": "VM " + .vm_name + " in namespace " + .vm_namespace + " using image " + .vm_image +" not ready after " + (.vmStatusRunning|tostring) + " retries: " + .vm.status
}
}'
- name: errorAuthorizationDeniedResult
Expand Down Expand Up @@ -315,7 +315,7 @@ states:
entityRef: .recipients
payload:
title: '"VM " + .vm_name + " in namespace "+.vm_namespace + " not ready"'
description: '"VM " + .vm_name + " in namespace " + .vm_namespace + " using image " + .vm_image +" not ready after " + .vmStatusRunningRetries + " retries: " + .vm.status'
description: '"VM " + .vm_name + " in namespace " + .vm_namespace + " using image " + .vm_image +" not ready after " + (.vmStatusRunningRetries|tostring) + " retries: " + .vm.status'
topic: "Request VM on CNV workflow"
severity: "high"
- name: setOutput
Expand Down

0 comments on commit e8474b6

Please sign in to comment.