Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelvll committed Aug 6, 2024
1 parent db9565f commit fcc717b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sky/clouds/service_catalog/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _get_modified_catalogs() -> List[str]:


class LazyDataFrame:
"""A lazy data frame that reads the catalog on demand.
"""A lazy data frame that updates and reads the catalog on demand.
We don't need to load the catalog for every SkyPilot call, and this class
allows us to load the catalog only when needed.
Expand Down Expand Up @@ -189,8 +189,6 @@ def _need_update() -> bool:

def _update_catalog():
# Atomic check, to avoid conflicts with other processes.
# TODO(mraheja): remove pylint disabling when filelock version updated
# pylint: disable=abstract-class-instantiated
with filelock.FileLock(meta_path + '.lock'):
if _need_update():
url = f'{constants.HOSTED_CATALOG_DIR_URL}/{constants.CATALOG_SCHEMA_VERSION}/{filename}' # pylint: disable=line-too-long
Expand Down

0 comments on commit fcc717b

Please sign in to comment.