Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
chore: remove obsolete workarounds in owlbot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Apr 14, 2023
1 parent f4bdcc7 commit 1f5196b
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,6 @@
if clean_up_generated_samples:
shutil.rmtree("samples/generated_samples", ignore_errors=True)
clean_up_generated_samples = False
# Fix import of 'osconfig' type
s.replace(
library / f"google/cloud/asset_{library.name}/types/assets.py",
f"from google\.cloud\.osconfig\.{library.name} import inventory_pb2",
f"from google.cloud.osconfig_{library.name} import Inventory"
)

s.replace(
library / f"google/cloud/asset_{library.name}/types/assets.py",
"inventory_pb2\.Inventory",
"Inventory"
)

s.replace(
library / f"google/cloud/asset_{library.name}/types/assets.py",
"google\.cloud\.osconfig\.v1\.inventory_pb2\.Inventory",
"google.cloud.osconfig_v1.Inventory"
)

# Remove broken `parse_asset_path` method
# The resource pattern is '*' which breaks the regex match
s.replace(
Expand Down

0 comments on commit 1f5196b

Please sign in to comment.