Skip to content

Add substring util #806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Add substring util #806

merged 3 commits into from
Apr 24, 2024

Conversation

VipulMascarenhas
Copy link
Member

Added util function as per review comments.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 24, 2024
@@ -741,3 +741,9 @@ def known_realm():

"""
return os.environ.get("CONDA_BUCKET_NS") in AQUA_GA_LIST


def get_ocid_substring(ocid: str, key_len: int = 8) -> str:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the significance of 8 characters in ocid?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no significance, I removed the defaults.

@VipulMascarenhas VipulMascarenhas merged commit 92974f2 into feature/aquav1.0.1 Apr 24, 2024
@VipulMascarenhas VipulMascarenhas deleted the telemetry_id_util branch April 24, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants