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 f228286 commit f310dbbCopy full SHA for f310dbb
ads/aqua/utils.py
@@ -743,7 +743,7 @@ def known_realm():
743
return os.environ.get("CONDA_BUCKET_NS") in AQUA_GA_LIST
744
745
746
-def get_ocid_substring(ocid: str, key_len: int = 8) -> str:
747
- """This helper function returns the last n characters of the ocid specified by key_len parameter, which defaults
748
- to 8. If ocid is None or length is less than key_len, it returns an empty string."""
+def get_ocid_substring(ocid: str, key_len: int) -> str:
+ """This helper function returns the last n characters of the ocid specified by key_len parameter.
+ If ocid is None or length is less than key_len, it returns an empty string."""
749
return ocid[-key_len:] if ocid and len(ocid) > key_len else ""
0 commit comments