Skip to content

Commit

Permalink
address some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaqin1 committed Oct 19, 2023
1 parent 46689cd commit 8564a36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deploy-agent/deployd/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def serve_build(self):
for status in self._envs.values():
# for each container, we check the health status
try:
healthStatus = utils.get_container_health_info(status.build_info.build_commit)
healthStatus = get_container_health_info(status.build_info.build_commit)
if healthStatus:
status.report.containerHealthStatus = healthStatus
else:
Expand Down
5 changes: 1 addition & 4 deletions deploy-agent/deployd/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,7 @@ def get_container_health_info(commit):
result = result + name + ":" + status.decode().strip() + ";"
except:
continue
if result != "":
return result
else:
return None
return result if result else None
else:
return None
except:
Expand Down

0 comments on commit 8564a36

Please sign in to comment.