(node *api.Node)
| 223 | } |
| 224 | |
| 225 | func (p *Plugin) updateSSHClient(node *api.Node) { |
| 226 | if p == nil || p.runner == nil { |
| 227 | return |
| 228 | } |
| 229 | |
| 230 | appConfig := p.app.Config() |
| 231 | if appConfig == nil { |
| 232 | return |
| 233 | } |
| 234 | |
| 235 | sshClient := buildSSHClient(appConfig, node, p.timeout) |
| 236 | p.runner.SetSSHClient(sshClient) |
| 237 | } |
| 238 | |
| 239 | func buildSSHClient(appConfig *config.Config, node *api.Node, timeout time.Duration) *commandrunner.SSHClientImpl { |
| 240 | sshUser := resolveSSHUser(appConfig, node) |
no test coverage detected