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
367367 containerName=$( echo " ${describedTaskJson} " | jq -r " .tasks[0].containers[${idx} ].name" )
368368 status=$( echo " ${describedTaskJson} " | jq -r " .tasks[0].containers[${idx} ].managedAgents[0].lastStatus" )
369369 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" )
370371 printf " $(( idx+ 1 )) . "
371372 case " ${status} " in
372373 * STOPPED* ) printf " ${COLOR_RED} STOPPED (Reason: ${reason} )" ;;
373374 * PENDING* ) printf " ${COLOR_YELLOW} PENDING" ;;
374375 * ) printf " ${COLOR_GREEN} RUNNING" ;;
375376 esac
376- printf " ${COLOR_DEFAULT} for \" ${containerName} \" container\n"
377+ printf " ${COLOR_DEFAULT} for \" ${containerName} \" container - LastStartedAt: ${lastStartedAt} \n"
377378 idx=$(( idx+ 1 ))
378379 done
379380fi
@@ -394,7 +395,7 @@ for enabled in $initEnabledList; do
394395 * false* ) printf " ${COLOR_YELLOW} Disabled" ;;
395396 * ) printf " ${COLOR_YELLOW} Disabled" ;;
396397 esac
397- printf " ${COLOR_DEFAULT} for \" ${containerName} \" container\n"
398+ printf " ${COLOR_DEFAULT} - \" ${containerName} \" container\n"
398399 idx=$(( idx+ 1 ))
399400done
400401
You can’t perform that action at this time.
0 commit comments