Skip to content

Commit

Permalink
[Catalog] Bump catalog schema version (#4470)
Browse files Browse the repository at this point in the history
* Bump catalog schema version

* trigger CI
  • Loading branch information
Michaelvll authored Dec 13, 2024
1 parent ed8e694 commit 3466469
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sky/clouds/service_catalog/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Constants used for service catalog."""
HOSTED_CATALOG_DIR_URL = 'https://raw.githubusercontent.com/skypilot-org/skypilot-catalog/master/catalogs' # pylint: disable=line-too-long
CATALOG_SCHEMA_VERSION = 'v5'
CATALOG_SCHEMA_VERSION = 'v6'
CATALOG_DIR = '~/.sky/catalogs'
ALL_CLOUDS = ('aws', 'azure', 'gcp', 'ibm', 'lambda', 'scp', 'oci',
'kubernetes', 'runpod', 'vsphere', 'cudo', 'fluidstack',
Expand Down
4 changes: 3 additions & 1 deletion sky/clouds/service_catalog/gcp_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ def get_instance_type_for_accelerator(

if acc_name in _ACC_INSTANCE_TYPE_DICTS:
df = _df[_df['InstanceType'].notna()]
instance_types = _ACC_INSTANCE_TYPE_DICTS[acc_name][acc_count]
instance_types = _ACC_INSTANCE_TYPE_DICTS[acc_name].get(acc_count, None)
if instance_types is None:
return None, []
df = df[df['InstanceType'].isin(instance_types)]

# Check the cpus and memory specified by the user.
Expand Down

0 comments on commit 3466469

Please sign in to comment.