Skip to content

Commit 61a3d43

Browse files
committed
allow empty app_profile_ids
1 parent 2785378 commit 61a3d43

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

owlbot.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,18 @@ def get_staging_dirs(
113113
INSTALL_LIBRARY_FROM_SOURCE = False""")
114114

115115
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
116+
117+
# ----------------------------------------------------------------------------
118+
# Customize execute_query rpc to support empty app_profile_id headers
119+
# ----------------------------------------------------------------------------
120+
121+
s.replace(
122+
"google/cloud/bigtable_v2/services/bigtable/client.py",
123+
"if request.app_profile_id:",
124+
"if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing"
125+
)
126+
s.replace(
127+
"google/cloud/bigtable_v2/services/bigtable/async_client.py",
128+
"if request.app_profile_id:",
129+
"if request.app_profile_id is not None: # temporary fix: support empty headers for btql routing"
130+
)

0 commit comments

Comments
 (0)