fix(fleet): align migration SSH parity docs
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -778,8 +778,8 @@ function classifyAgentLocality(
|
||||
if (hasSsh) {
|
||||
if (!ssh) return 'ambiguous';
|
||||
const separator = ssh.lastIndexOf('@');
|
||||
const sshHost = separator >= 0 ? ssh.slice(separator + 1) : undefined;
|
||||
if (!sshHost || sshHost !== host) return 'ambiguous';
|
||||
const sshHost = separator >= 0 ? ssh.slice(separator + 1) : ssh;
|
||||
if (sshHost !== host) return 'ambiguous';
|
||||
}
|
||||
return host === fleetHost ? 'local' : 'remote';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user