Skip to content

Commit f7763f0

Browse files
committed
if available_space is not filled set to 0
1 parent 3d906d7 commit f7763f0

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async def get_available_disk_space(
139139

140140
# Available disk space will be captured here
141141
available_space = stdout.read().decode("utf-8").strip()
142-
return ByteSize(available_space)
142+
return ByteSize(available_space if available_space else 0)
143143
except (
144144
paramiko.AuthenticationException,
145145
paramiko.SSHException,

0 commit comments

Comments
 (0)