Skip to content

Commit 1f88d67

Browse files
authored
ignore case for enabled (#33986)
1 parent e5d8923 commit 1f88d67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_deployment/deployment_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class DeploymentCollection:
1515
"""Collection entity
1616
17-
:param enabled: Is logging for this collection enabled.
17+
:param enabled: Is logging for this collection enabled. Possible values include: 'true', 'false'.
1818
:type enabled: str
1919
:param data: Data asset id associated with collection logging.
2020
:type data: str
@@ -54,7 +54,7 @@ def _from_rest_object(cls, rest_obj: RestCollection) -> "DeploymentCollection":
5454

5555
def _to_rest_object(self) -> RestCollection:
5656
return RestCollection(
57-
data_collection_mode="enabled" if self.enabled == "true" else "disabled",
57+
data_collection_mode="enabled" if self.enabled.lower() == "true" else "disabled",
5858
sampling_rate=self.sampling_rate,
5959
data_id=self.data,
6060
client_id=self.client_id,

0 commit comments

Comments
 (0)