Skip to content

Commit

Permalink
Merge branch 'main' into context
Browse files Browse the repository at this point in the history
  • Loading branch information
luthermonson authored Oct 25, 2023
2 parents e23a9de + 413ae35 commit b660812
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,14 @@ func (v *VirtualMachine) WaitForAgent(ctx context.Context, seconds int) error {
}

func (v *VirtualMachine) AgentExec(ctx context.Context, command, inputData string) (pid int, err error) {

Check warning on line 494 in virtual_machine.go

View check run for this annotation

Codecov / codecov/patch

virtual_machine.go#L494

Added line #L494 was not covered by tests
tmpdata := map[string]interface{}{}
err = v.client.Post(ctx, fmt.Sprintf("/nodes/%s/qemu/%d/agent/exec", v.Node, v.VMID),

Check warning on line 496 in virtual_machine.go

View check run for this annotation

Codecov / codecov/patch

virtual_machine.go#L496

Added line #L496 was not covered by tests
map[string]string{
"command": command,
"input-data": inputData,
},
&pid)

&tmpdata)
pid = int(tmpdata["pid"].(float64))
return
}

Expand Down

0 comments on commit b660812

Please sign in to comment.