Skip to content

Commit 13d5197

Browse files
committed
Copy: Add comment on why we want to use instance-specific args.
#194 (review) Signed-off-by: Mark Yen <[email protected]>
1 parent cf9359b commit 13d5197

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/limactl/copy.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ func copyAction(clicontext *cli.Context) error {
6464

6565
sshArgs := []string{}
6666
if len(instDirs) == 1 {
67+
// Only one (instance) host is involved; we can use the instance-specific
68+
// arguments such as ControlPath. This is preferred as we can multiplex
69+
// sessions without re-authenticating (MaxSessions permitting).
6770
for _, instDir := range instDirs {
6871
sshArgs, err = sshutil.SSHArgs(instDir, false)
6972
if err != nil {

0 commit comments

Comments
 (0)