File tree Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Expand file tree Collapse file tree 3 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -51,20 +51,22 @@ def get(self):
51
51
52
52
"""
53
53
54
- current_version_path = os .path .join (
54
+ current_aqua_version_path = os .path .join (
55
55
os .path .dirname (os .path .abspath (__file__ )), ".." , "version.json"
56
56
)
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
+
57
61
latest_version_artifact_path = ObjectStorageDetails (
58
62
CONDA_BUCKET_NAME , CONDA_BUCKET_NS , "service_pack/aqua_latest_version.json"
59
63
).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 ())
62
67
)
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 }
68
70
return self .finish (response )
69
71
70
72
Original file line number Diff line number Diff line change @@ -147,6 +147,8 @@ def from_oci_model_deployment(
147
147
AquaDeployment:
148
148
The instance of the Aqua model deployment.
149
149
"""
150
+ print ("oci_model_deployment: " , oci_model_deployment )
151
+
150
152
instance_configuration = oci_model_deployment .model_deployment_configuration_details .model_configuration_details .instance_configuration
151
153
instance_shape_config_details = (
152
154
instance_configuration .model_deployment_instance_shape_config_details
Original file line number Diff line number Diff line change 1
1
{
2
- "installed" : {
3
- "ads" : " 2.14.2" ,
4
- "aqua" : " 0.1.3.0"
5
- }
2
+ "aqua" : " 1.0.7"
6
3
}
You can’t perform that action at this time.
0 commit comments