Skip to content

Commit

Permalink
Fix 436: Unmarshaling VM Tasks based on the right variable (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel committed Jul 11, 2024
1 parent 61f3784 commit 28b4601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3/services/scenariosvc/internal/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (s *GrpcScenarioServer) CreateScenario(ctx context.Context, req *scenariopb
scenario.Spec.VirtualMachines = vms
}
if rawVmTasks != "" {
vmTasks, err := util.GenericUnmarshal[[]hfv1.VirtualMachineTasks](rawSteps, "raw_vm_tasks")
vmTasks, err := util.GenericUnmarshal[[]hfv1.VirtualMachineTasks](rawVmTasks, "raw_vm_tasks")
if err != nil {
return &generalpb.ResourceId{}, hferrors.GrpcParsingError(req, "raw_vm_tasks")
}
Expand Down

0 comments on commit 28b4601

Please sign in to comment.