diff --git a/internal/runners/adapters.go b/internal/runners/adapters.go index fe2322f0..9c92b69c 100644 --- a/internal/runners/adapters.go +++ b/internal/runners/adapters.go @@ -403,7 +403,7 @@ func (r *AdapterRunner) Restart(in Request) (*Response, error) { name := in.Args[0] - if err := r.service.Stop(name); err != nil { + if err := r.service.Restart(name); err != nil { return nil, err } diff --git a/pkg/services/command_templates.go b/pkg/services/command_templates.go index cad0f43e..57aeafc4 100644 --- a/pkg/services/command_templates.go +++ b/pkg/services/command_templates.go @@ -69,7 +69,7 @@ func NewCommandTemplate(name string) CommandTemplate { } // Get will return the specified command template from the server. If the -// specified temlate does not exist, this function will return an error. +// specified template does not exist, this function will return an error. func (svc *CommandTemplateService) Get(name string) (*CommandTemplate, error) { logger.Trace() @@ -127,7 +127,7 @@ func (svc *CommandTemplateService) Create(in CommandTemplate) (*CommandTemplate, logger.Trace() // NOTE (hashdigest) The Id must be set to the same value as the name - // otheriwse the document cannot be found later + // otherwise the document cannot be found later in.Id = in.Name body := map[string]CommandTemplate{"mop": in}