Skip to content

Commit fcfd0b8

Browse files
Fixing MD list call
1 parent 4ada401 commit fcfd0b8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ads/aqua/modeldeployment/deployment.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,17 +864,21 @@ def list(self, **kwargs) -> List["AquaDeployment"]:
864864
if oci_aqua:
865865
# skipping the AQUA model deployments that are created from model group
866866
# TODO: remove this checker after AQUA deployment is integrated with model group
867+
867868
aqua_model_id = model_deployment.freeform_tags.get(
868869
Tags.AQUA_MODEL_ID_TAG, UNKNOWN
869870
)
870-
if "datasciencemodelgroup" in aqua_model_id or not aqua_model_id:
871+
if (
872+
"datasciencemodelgroup" in aqua_model_id
873+
or model_deployment.model_deployment_configuration_details.deployment_type
874+
== "UNKNOWN_ENUM_VALUE"
875+
):
871876
continue
872877
results.append(
873878
AquaDeployment.from_oci_model_deployment(
874879
model_deployment, self.region
875880
)
876881
)
877-
878882
# log telemetry if MD is in active or failed state
879883
deployment_id = model_deployment.id
880884
state = model_deployment.lifecycle_state.upper()

0 commit comments

Comments
 (0)