Skip to content

Commit ce2a3e1

Browse files
Mozamil SadatMozamil Sadat
authored andcommitted
changed SSMRunAPI to RunAPI in the download function.
1 parent 475ea5c commit ce2a3e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/ssm/transfer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func Upload(ctx context.Context, client RunAPI, instanceID, localPath, remotePat
9090

9191
// Download copies a remote file to a local path via SSM.
9292
// Practical limit: ~36KB due to SSM stdout truncation.
93-
func Download(ctx context.Context, client SSMRunAPI, instanceID, remotePath, localPath string, timeout time.Duration) error {
93+
func Download(ctx context.Context, client RunAPI, instanceID, remotePath, localPath string, timeout time.Duration) error {
9494
result, err := RunCommand(ctx, client, instanceID,
9595
[]string{fmt.Sprintf("cat %s | base64", remotePath)},
9696
timeout,

0 commit comments

Comments
 (0)