Skip to content

Commit 9844912

Browse files
committed
fixed usage of variable
1 parent a2e009f commit 9844912

File tree

1 file changed

+5
-1
lines changed
  • scripts/maintenance/computational-clusters/autoscaled_monitor

1 file changed

+5
-1
lines changed

scripts/maintenance/computational-clusters/autoscaled_monitor/core.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,11 @@ def _print_summary_as_json(
457457
"user_id": cluster.primary.user_id,
458458
"wallet_id": cluster.primary.wallet_id,
459459
"disk_space": cluster.primary.disk_space.human_readable(),
460-
"last_heartbeat": cluster.primary.last_heartbeat.isoformat(),
460+
"last_heartbeat": (
461+
cluster.primary.last_heartbeat.isoformat()
462+
if cluster.primary.last_heartbeat
463+
else "n/a"
464+
),
461465
},
462466
"workers": [
463467
{

0 commit comments

Comments
 (0)