Skip to content
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

fix: add missing KMS resource name method in post-processing #5043

Merged
merged 5 commits into from
Jan 25, 2022

Conversation

bshaffer
Copy link
Contributor

No description provided.

@bshaffer bshaffer requested review from a team as code owners January 21, 2022 17:36
@bshaffer bshaffer requested a review from tmatsuo January 21, 2022 17:36
Kms/owlbot.py Outdated

s.replace(
'src/V1/Gapic/KeyManagementServiceGapicClient.php',
r"}",
Copy link
Contributor

Choose a reason for hiding this comment

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

This operation is not idempotent.

Can you grep the new function name and if it doesn't exist inject it?

Copy link
Contributor Author

@bshaffer bshaffer Jan 24, 2022

Choose a reason for hiding this comment

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

great idea! Is there a grep functionality in synthtool, or should I just implement it in python like this

 f = open('src/V1/Gapic/KeyManagementServiceGapicClient.php',  "r")
if 'public static function cryptoKeyName' not in f.read():
     s.replace(..)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, implemented in latest change. PTAL!

@bshaffer bshaffer merged commit 5ff33d8 into master Jan 25, 2022
@bshaffer bshaffer deleted the fix-missing-kms-static-method-in-synthtool branch January 25, 2022 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants