Skip to content

Commit

Permalink
Update sky/serve/replica_managers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tian Xia <[email protected]>
  • Loading branch information
andylizf and cblmemo authored Sep 30, 2024
1 parent 6d950ab commit ef617c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/serve/replica_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _get_resources_ports(task_yaml: str) -> str:
task = sky.Task.from_yaml(task_yaml)
# Already checked all ports are the same in sky.serve.core.up
assert len(task.resources) >= 1, task
task_resources: Resources = list(task.resources)[0]
task_resources: 'resources.Resources' = list(task.resources)[0]
# Already checked the resources have and only have one port
# before upload the task yaml.
assert task_resources.ports is not None
Expand Down

0 comments on commit ef617c7

Please sign in to comment.