(user string, targetServer *config.ServerListConfig)
| 88 | } |
| 89 | |
| 90 | func (cc *ScpController) tryCopyWithCache(user string, targetServer *config.ServerListConfig) { |
| 91 | lan := &launcher.ScpLauncher{ |
| 92 | SSHConnector: *launcher.GetSSHConnectorFromConfig(targetServer), |
| 93 | Src: cc.source, |
| 94 | Dest: cc.destination, |
| 95 | Recursive: cc.recursive, |
| 96 | } |
| 97 | lan.SSHTimeout = sshClientTimeoutWhenLogin |
| 98 | if !lan.Launch() { |
| 99 | utils.Errorf("Failed to log in with cached information. Start trying to login again.\n\n") |
| 100 | cc.tryCopyWithoutCache(user) |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | func (cc *ScpController) tryCopyWithoutCache(user string) { |
| 105 | combinations := config.GenerateCombination(cc.destIP, user, cc.configuration) |
no test coverage detected