Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Fix command to convert
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Nov 17, 2018
1 parent b458182 commit 82c7c68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions programs/operations/ops/impl/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"strings"

"fmt"
"github.com/pufferpanel/apufferi/common"
"github.com/pufferpanel/apufferi/logging"
"github.com/pufferpanel/pufferd/environments"
)
Expand Down Expand Up @@ -58,7 +57,7 @@ type CommandOperationFactory struct {
}

func (of CommandOperationFactory) Create(op ops.CreateOperation) ops.Operation {
cmds := common.ToStringArray(op.OperationArgs["commands"])
cmds := op.OperationArgs["commands"].([]string)
return Command{Commands: cmds, Env: op.EnvironmentVariables}
}

Expand Down

0 comments on commit 82c7c68

Please sign in to comment.