@@ -45,6 +45,9 @@ const ciHookFailedMsg = "CI hook execution failed"
4545// logKeyComponent is the structured-log key for a component name.
4646const logKeyComponent = "component"
4747
48+ // logKeyStack is the structured-log key for a stack name.
49+ const logKeyStack = "stack"
50+
4851// verifyPlanFlagName is the tri-state planfile-verify flag (--verify-plan,
4952// --verify-plan=false).
5053const verifyPlanFlagName = "verify-plan"
@@ -1155,7 +1158,7 @@ func handleUnconfiguredPlanfileStorage(atmosConfig *schema.AtmosConfiguration, i
11551158
11561159 if v := atmosConfig .Components .Terraform .Planfiles .Verify ; v == schema .PlanfileVerifyFail || v == schema .PlanfileVerifyWarn {
11571160 log .Warn ("components.terraform.planfiles.verify is set but planfile storage is not configured; skipping planfile verification" ,
1158- logKeyComponent , info .ComponentFromArg , "stack" , info .Stack )
1161+ logKeyComponent , info .ComponentFromArg , logKeyStack , info .Stack )
11591162 }
11601163 return nil
11611164}
@@ -1172,7 +1175,7 @@ func handleMissingStoredPlan(atmosConfig *schema.AtmosConfiguration, info *schem
11721175 }
11731176
11741177 log .Warn ("No stored planfile found to verify; applying a fresh plan without verification" ,
1175- logKeyComponent , info .ComponentFromArg , "stack" , info .Stack )
1178+ logKeyComponent , info .ComponentFromArg , logKeyStack , info .Stack )
11761179 return nil
11771180}
11781181
@@ -1314,7 +1317,7 @@ func handleInteractiveComponentStackSelection(info *schema.ConfigAndStacksInfo,
13141317 // If stack is already provided (via --stack flag), filter components to that stack.
13151318 if info .ComponentFromArg == "" {
13161319 component , err := promptForComponent (cmd , info .Stack )
1317- if err = handlePromptError (err , "component" ); err != nil {
1320+ if err = handlePromptError (err , logKeyComponent ); err != nil {
13181321 return err
13191322 }
13201323 info .ComponentFromArg = component
@@ -1323,7 +1326,7 @@ func handleInteractiveComponentStackSelection(info *schema.ConfigAndStacksInfo,
13231326 // Prompt for stack if missing.
13241327 if info .Stack == "" {
13251328 stack , err := promptForStack (cmd , info .ComponentFromArg )
1326- if err = handlePromptError (err , "stack" ); err != nil {
1329+ if err = handlePromptError (err , logKeyStack ); err != nil {
13271330 return err
13281331 }
13291332 info .Stack = stack
0 commit comments