Skip to content

Commit 6c6d5a7

Browse files
committed
set forcejwt from meta
1 parent f47d061 commit 6c6d5a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/blockcontroller/shelljobcontroller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func (sjc *ShellJobController) startNewJob(ctx context.Context, blockMeta waveob
271271
Login: true,
272272
Cwd: cwd,
273273
SwapToken: swapToken,
274-
ForceJwt: false,
274+
ForceJwt: blockMeta.GetBool(waveobj.MetaKey_CmdJwt, false),
275275
}
276276
jobId, err := shellexec.StartRemoteShellJob(ctx, ctx, termSize, cmdStr, cmdOpts, conn)
277277
if err != nil {

0 commit comments

Comments
 (0)