Use common.ToBool to check DOKKU_FORCE_TTY

This commit is contained in:
Tasos Maschalidis
2024-12-17 19:17:24 +02:00
parent f786c8c0bc
commit 63182e80e0
2 changed files with 2 additions and 2 deletions

View File

@@ -385,7 +385,7 @@ func (k KubernetesClient) ExecCommand(ctx context.Context, input ExecCommandInpu
size := t.GetSize()
sizeQueue := t.MonitorSize(size)
actuallyTty := (sizeQueue != nil) || os.Getenv("DOKKU_FORCE_TTY") == "true"
actuallyTty := (sizeQueue != nil) || common.ToBool(os.Getenv("DOKKU_FORCE_TTY"))
if actuallyTty {
req.Param("tty", "true")

View File

@@ -1142,7 +1142,7 @@ func TriggerSchedulerRun(scheduler string, appName string, envCount int, args []
Image: image,
ImagePullSecrets: imagePullSecrets,
ImageSourceType: imageSourceType,
Interactive: attachToPod || os.Getenv("DOKKU_FORCE_TTY") == "true",
Interactive: attachToPod || common.ToBool(os.Getenv("DOKKU_FORCE_TTY")),
Labels: labels,
Namespace: namespace,
ProcessType: processType,