Skip to content

Commit 5b67730

Browse files
committed
fix: isSearchClient
1 parent 34a78f3 commit 5b67730

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/python/api.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ class {{classname}}{{#isSyncClient}}Sync{{/isSyncClient}}:
5656
self._config = config
5757
self._request_options = RequestOptions(config)
5858

59+
{{#isSearchClient}}
5960
if config.region is not None:
6061
self._ingestion_transporter = IngestionClient{{#isSyncClient}}Sync{{/isSyncClient}}.create_with_config(IngestionConfig(config.app_id, config.api_key, config.region))
62+
{{/isSearchClient}}
6163

6264
if transporter is None:
6365
transporter = Transporter{{#isSyncClient}}Sync{{/isSyncClient}}(config)

0 commit comments

Comments
 (0)