Skip to content

Commit

Permalink
Fix command runner
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Jun 7, 2022
1 parent d188788 commit 225ecd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/ec2/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ec2
import (
"context"
"fmt"
"strings"
"time"

"github.com/aws/aws-sdk-go-v2/service/ssm"
Expand Down Expand Up @@ -38,7 +39,7 @@ func NewCommandRunner(cfg *config.Config, inst *Instance, command []string) (*Co
CloudWatchOutputEnabled: true,
},
Parameters: map[string][]string{
"commands": command,
"commands": {strings.Join(command, " ")},
},
}

Expand Down

0 comments on commit 225ecd7

Please sign in to comment.