Skip to content

Commit c231b6f

Browse files
added typing and updated description
1 parent 78c326b commit c231b6f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ads/aqua/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,10 @@ def get_container_image(
578578
return container_image
579579

580580

581-
def fetch_service_compartment():
582-
"""Loads the compartment mapping json from service bucket"""
581+
def fetch_service_compartment() -> Union[str, None]:
582+
"""Loads the compartment mapping json from service bucket. This json file has a service-model-compartment key which
583+
contains a dictionary of namespaces and the compartment OCID of the service models in that namespace.
584+
"""
583585
config_file_name = (
584586
f"oci://{AQUA_SERVICE_MODELS_BUCKET}@{CONDA_BUCKET_NS}/service_models/config"
585587
)

0 commit comments

Comments
 (0)