Skip to content

Commit f8fde33

Browse files
Addressing review comments
1 parent ddb3246 commit f8fde33

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

ads/aqua/extension/common_handler.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,22 @@ def get(self):
5151
5252
"""
5353

54-
current_version_path = os.path.join(
54+
current_aqua_version_path = os.path.join(
5555
os.path.dirname(os.path.abspath(__file__)), "..", "version.json"
5656
)
57+
current_aqua_version = json.loads(read_file(current_aqua_version_path))
58+
current_ads_version = {"ads": metadata.version("oracle_ads")}
59+
current_version = {"installed": {**current_aqua_version, **current_ads_version}}
60+
5761
latest_version_artifact_path = ObjectStorageDetails(
5862
CONDA_BUCKET_NAME, CONDA_BUCKET_NS, "service_pack/aqua_latest_version.json"
5963
).path
60-
latest_version_content = read_file(
61-
latest_version_artifact_path, auth=default_signer()
64+
65+
latest_version = json.loads(
66+
read_file(latest_version_artifact_path, auth=default_signer())
6267
)
63-
current_version_content = read_file(current_version_path)
64-
response = {
65-
**json.loads(current_version_content),
66-
**json.loads(latest_version_content),
67-
}
68+
69+
response = {**current_version, **latest_version}
6870
return self.finish(response)
6971

7072

ads/aqua/modeldeployment/entities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ def from_oci_model_deployment(
147147
AquaDeployment:
148148
The instance of the Aqua model deployment.
149149
"""
150+
print("oci_model_deployment: ", oci_model_deployment)
151+
150152
instance_configuration = oci_model_deployment.model_deployment_configuration_details.model_configuration_details.instance_configuration
151153
instance_shape_config_details = (
152154
instance_configuration.model_deployment_instance_shape_config_details

ads/aqua/version.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"installed": {
3-
"ads": "2.14.2",
4-
"aqua": "0.1.3.0"
5-
}
2+
"aqua": "1.0.7"
63
}

0 commit comments

Comments
 (0)