From 1f5196bfc538bc22588f5ed7542952241e578390 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 14 Apr 2023 08:52:50 -0400 Subject: [PATCH] chore: remove obsolete workarounds in owlbot.py --- owlbot.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/owlbot.py b/owlbot.py index 8f351856..2b474f49 100644 --- a/owlbot.py +++ b/owlbot.py @@ -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(