diff --git a/src/models/virtual_machine_execute.go b/src/models/virtual_machine_execute.go index 534c986..bf35191 100644 --- a/src/models/virtual_machine_execute.go +++ b/src/models/virtual_machine_execute.go @@ -12,7 +12,7 @@ type VirtualMachineExecuteCommandRequest struct { } func (r *VirtualMachineExecuteCommandRequest) Validate() error { - if r.Command == "" || r.Script == nil { + if r.Command == "" && r.Script == nil { if r.Script == nil { return errors.NewWithCode("missing script", 400) }