File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -367,13 +367,14 @@ else
367
367
containerName=$( echo " ${describedTaskJson} " | jq -r " .tasks[0].containers[${idx} ].name" )
368
368
status=$( echo " ${describedTaskJson} " | jq -r " .tasks[0].containers[${idx} ].managedAgents[0].lastStatus" )
369
369
reason=$( echo " ${describedTaskJson} " | jq -r " .tasks[0].containers[${idx} ].managedAgents[0].reason" )
370
+ lastStartedAt=$( echo " ${describedTaskJson} " | jq -r " .tasks[0].containers[${idx} ].managedAgents[0].lastStartedAt" )
370
371
printf " $(( idx+ 1 )) . "
371
372
case " ${status} " in
372
373
* STOPPED* ) printf " ${COLOR_RED} STOPPED (Reason: ${reason} )" ;;
373
374
* PENDING* ) printf " ${COLOR_YELLOW} PENDING" ;;
374
375
* ) printf " ${COLOR_GREEN} RUNNING" ;;
375
376
esac
376
- printf " ${COLOR_DEFAULT} for \" ${containerName} \" container\n"
377
+ printf " ${COLOR_DEFAULT} for \" ${containerName} \" container - LastStartedAt: ${lastStartedAt} \n"
377
378
idx=$(( idx+ 1 ))
378
379
done
379
380
fi
@@ -394,7 +395,7 @@ for enabled in $initEnabledList; do
394
395
* false* ) printf " ${COLOR_YELLOW} Disabled" ;;
395
396
* ) printf " ${COLOR_YELLOW} Disabled" ;;
396
397
esac
397
- printf " ${COLOR_DEFAULT} for \" ${containerName} \" container\n"
398
+ printf " ${COLOR_DEFAULT} - \" ${containerName} \" container\n"
398
399
idx=$(( idx+ 1 ))
399
400
done
400
401
You can’t perform that action at this time.
0 commit comments