Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/runners/adapters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/services/command_templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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}
Expand Down