We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5973e4 commit c86bc36Copy full SHA for c86bc36
ads/opctl/operator/common/utils.py
@@ -26,7 +26,8 @@ class OperatorValidator(Validator):
26
27
def validate(self, obj_dict, **kwargs):
28
# Model should be case insensitive
29
- obj_dict["spec"]["model"] = str(obj_dict["spec"]["model"]).lower()
+ if "model" in obj_dict["spec"]:
30
+ obj_dict["spec"]["model"] = str(obj_dict["spec"]["model"]).lower()
31
return super().validate(obj_dict, **kwargs)
32
33
0 commit comments