Skip to content

Commit

Permalink
removed .inputs. as schema changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaiShalevRH authored and gabriel-farache committed Oct 8, 2024
1 parent f1cf821 commit 351790e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modify-vm-resources/modify-vm-resources.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ functions:
- name: fillEmptyValues
type: expression
operation: '{
vm_new_memory:(if (.inputs.vm_new_memory == null or
.inputs.vm_new_memory =="") then
.vm.spec.template.spec.domain.memory.guest else .inputs.vm_new_memory
vm_new_memory:(if (.vm_new_memory == null or
.vm_new_memory =="") then
.vm.spec.template.spec.domain.memory.guest else .vm_new_memory
end),
vm_new_cpu_cores:(if .inputs.vm_new_cpu_cores == null then
.vm.spec.template.spec.domain.cpu.cores else .inputs.vm_new_cpu_cores
vm_new_cpu_cores:(if .vm_new_cpu_cores == null then
.vm.spec.template.spec.domain.cpu.cores else .vm_new_cpu_cores
end),
vm_new_cpu_sockets:(if .inputs.vm_new_cpu_sockets == null then
.vm.spec.template.spec.domain.cpu.sockets else .inputs.vm_new_cpu_sockets
vm_new_cpu_sockets:(if .vm_new_cpu_sockets == null then
.vm.spec.template.spec.domain.cpu.sockets else .vm_new_cpu_sockets
end),
vm_new_cpu_threads:if .inputs.vm_new_cpu_threads == null then
.vm.spec.template.spec.domain.cpu.threads else .inputs.vm_new_cpu_threads
vm_new_cpu_threads:if .vm_new_cpu_threads == null then
.vm.spec.template.spec.domain.cpu.threads else .vm_new_cpu_threads
end
}'
start: Get VM
Expand Down

0 comments on commit 351790e

Please sign in to comment.