@@ -928,7 +928,6 @@ func getAgentStatus(ctx context.Context, cmd *cli.Command) error {
928928 for _ , regionalAgent := range agent .AgentDeployments {
929929 curCPU := "-"
930930 curMem := "-"
931- replicas := "-"
932931 agentName := "---"
933932 deployment := "---"
934933 lastScrapedAt := "---"
@@ -946,16 +945,16 @@ func getAgentStatus(ctx context.Context, cmd *cli.Command) error {
946945 if err != nil {
947946 logger .Errorw ("error parsing mem" , err )
948947 }
949- replicas = fmt .Sprintf ("%d" , regionalAgent .Replicas )
950- if regionalAgent .DeploymentEnabled {
951- deployment = regionalAgent .Deployment
952- if deployment == "" {
953- deployment = "production"
954- }
955- }
956948 agentName = regionalAgent .AgentName
957949 }
958950
951+ if regionalAgent .DeploymentEnabled {
952+ deployment = regionalAgent .Deployment
953+ if deployment == "" {
954+ deployment = "production"
955+ }
956+ }
957+
959958 memLimit , err := agentfs .ParseMem (regionalAgent .MemLimit , true )
960959 if err != nil {
961960 logger .Errorw ("error parsing mem req" , err )
@@ -975,7 +974,7 @@ func getAgentStatus(ctx context.Context, cmd *cli.Command) error {
975974 regionalAgent .Status ,
976975 fmt .Sprintf ("%s / %s" , curCPU , regionalAgent .CpuLimit ),
977976 fmt .Sprintf ("%s / %s" , curMem , memLimit ),
978- fmt .Sprintf ("%s / %d / %d" , replicas , regionalAgent .MinReplicas , regionalAgent .MaxReplicas ),
977+ fmt .Sprintf ("%d / %d / %d" , regionalAgent . Replicas , regionalAgent .MinReplicas , regionalAgent .MaxReplicas ),
979978 formatTime (agent .DeployedAt .AsTime ()),
980979 lastScrapedAt ,
981980 })
0 commit comments