feat: remove extra set status

This commit is contained in:
Denis Gukov 2024-11-24 15:36:58 +05:00
parent f608c7805d
commit 29c7f53d02

View File

@ -161,13 +161,13 @@ func (t *TerraformApp) Run(args LocalAppRunningArgs) error {
return nil
}
t.Logger.SetStatus(task_logger.TaskWaitingConfirmation)
if params.AutoApprove {
t.Logger.SetStatus(task_logger.TaskRunningStatus)
return t.Apply(args.CliArgs, args.EnvironmentVars, args.Inputs, args.Callback)
}
t.Logger.SetStatus(task_logger.TaskWaitingConfirmation)
for {
time.Sleep(time.Second * 3)
if t.reader.result != nil {