diff --git a/examples/api-server/deploy.yaml b/examples/api-server/deploy.yaml index 97f623e0743..0bb27cd7e4e 100644 --- a/examples/api-server/deploy.yaml +++ b/examples/api-server/deploy.yaml @@ -1,5 +1,6 @@ resources: cpus: 4+ + ports: 46580 setup: | diff --git a/sky/resources.py b/sky/resources.py index 07c5c22bd94..8d8dc3bbe6e 100644 --- a/sky/resources.py +++ b/sky/resources.py @@ -179,9 +179,9 @@ def __init__( # TODO(zhwu): if region/zone is not valid, this dict will have wrong # keys. assert image_id is None or ( - self._region is not None or self._zone is not None - ), (f'image_id {image_id} specified when region and zone are set, ' - 'which is not supported yet.') + self._region is not None or self._zone is not None), ( + f'image_id {image_id} specified when region and zone are set, ' + 'which is not supported yet.') self._image_id = image_id if isinstance(image_id, str): self._image_id = {self._region: image_id.strip()}