Skip to content

Commit

Permalink
Update ssh_connector.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dbbDylan authored Sep 14, 2024
1 parent 1bf5b88 commit 4d2dcab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/connector/ssh_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (c *sshConnector) FetchFile(_ context.Context, src string, dst io.Writer) e
}

// ExecuteCommand in remote host
func (c *sshConnector) ExecuteCommand(_ context.Context, cmd string) ([]byte, error) {
func (c *sshConnector) ExecuteCommand(ctx context.Context, cmd string) ([]byte, error) {
klog.V(5).InfoS("exec ssh command", "cmd", cmd, "host", c.Host)
// create ssh session
session, err := c.client.NewSession()
Expand Down

0 comments on commit 4d2dcab

Please sign in to comment.