Skip to content

Commit 5a7ab47

Browse files
committed
Skipping the UNKNOWN MDs
1 parent 7b56c99 commit 5a7ab47

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ads/aqua/modeldeployment/deployment.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949
AQUA_MODEL_TYPE_SERVICE,
5050
AQUA_MULTI_MODEL_CONFIG,
5151
MODEL_BY_REFERENCE_OSS_PATH_KEY,
52-
MODEL_GROUP,
5352
MODEL_NAME_DELIMITER,
54-
SINGLE_MODEL_FLEX,
5553
UNKNOWN_DICT,
5654
UNKNOWN_ENUM_VALUE,
5755
)
@@ -113,9 +111,7 @@
113111
ModelDeploymentInfrastructure,
114112
ModelDeploymentMode,
115113
)
116-
from ads.model.deployment.model_deployment import (
117-
ModelDeploymentUpdateType,
118-
)
114+
from ads.model.deployment.model_deployment import ModelDeploymentUpdateType
119115
from ads.model.model_metadata import ModelCustomMetadata, ModelCustomMetadataItem
120116
from ads.telemetry import telemetry
121117

@@ -1580,6 +1576,13 @@ def list(self, **kwargs) -> List["AquaDeployment"]:
15801576
)
15811577

15821578
if oci_aqua:
1579+
# skipping the AQUA model deployments that are created with UNKNOWN deployment type
1580+
if (
1581+
model_deployment.model_deployment_configuration_details.deployment_type
1582+
in [UNKNOWN_ENUM_VALUE]
1583+
):
1584+
continue
1585+
15831586
try:
15841587
results.append(
15851588
AquaDeployment.from_oci_model_deployment(

0 commit comments

Comments
 (0)