From 61a3d4331189fa7e6632ad05ff47711a1bfb6b36 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Thu, 16 Jan 2025 15:10:52 -0800 Subject: [PATCH] allow empty app_profile_ids --- owlbot.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/owlbot.py b/owlbot.py index 16ce11b4f..93df2c096 100644 --- a/owlbot.py +++ b/owlbot.py @@ -113,3 +113,18 @@ def get_staging_dirs( INSTALL_LIBRARY_FROM_SOURCE = False""") s.shell.run(["nox", "-s", "blacken"], hide_output=False) + +# ---------------------------------------------------------------------------- +# Customize execute_query rpc to support empty app_profile_id headers +# ---------------------------------------------------------------------------- + +s.replace( + "google/cloud/bigtable_v2/services/bigtable/client.py", + "if request.app_profile_id:", + "if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing" +) +s.replace( + "google/cloud/bigtable_v2/services/bigtable/async_client.py", + "if request.app_profile_id:", + "if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing" +) \ No newline at end of file