Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

chore: fix string replacement in owlbot.py#151

Merged
busunkim96 merged 2 commits intomasterfrom
fix-owlbot-py-s-replace
May 20, 2021
Merged

chore: fix string replacement in owlbot.py#151
busunkim96 merged 2 commits intomasterfrom
fix-owlbot-py-s-replace

Conversation

@parthea
Copy link
Contributor

@parthea parthea commented May 20, 2021

There are commits, for example this one, in #147 from owlbot which are excessively commenting out the same line with #. I think the issue is caused by this commit made in #143 and the fact that the owlbot will run owlbot.py as part of the post-processing.

At this line in owlbot.py, we have a for loop that iterates through paths to the clean (aka un-hacked) versions of the generated client from googleapis-gen. The s.replace() calls should be done in the for loop to ensure that we only run the s.replace() on clean versions of the generated client.

@parthea parthea requested a review from a team as a code owner May 20, 2021 10:49
@product-auto-label product-auto-label bot added the api: securitycenter Issues related to the googleapis/python-securitycenter API. label May 20, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label May 20, 2021
Copy link
Contributor

@busunkim96 busunkim96 left a comment

Choose a reason for hiding this comment

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

Thank you!

@busunkim96 busunkim96 merged commit c69e70c into master May 20, 2021
@busunkim96 busunkim96 deleted the fix-owlbot-py-s-replace branch May 20, 2021 18:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: securitycenter Issues related to the googleapis/python-securitycenter API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants