Skip to content

fix: creating client instance from static configuration #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 1.35.0 [unreleased]

### Bug Fixes
1. [#526](https://github.com/influxdata/influxdb-client-python/pull/526): Creating client instance from static configuration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR in reference to #522?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it is fix for #520


### CI
1. [#523](https://github.com/influxdata/influxdb-client-python/pull/523): Add Python 3.11 to CI builds

Expand Down
5 changes: 2 additions & 3 deletions influxdb_client/client/influxdb_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ def from_config_file(cls, config_file: str = "config.ini", debug=None, enable_gz
}

"""
return super(InfluxDBClient, cls)._from_config_file(config_file=config_file, debug=debug,
enable_gzip=enable_gzip, **kwargs)
return InfluxDBClient._from_config_file(config_file=config_file, debug=debug, enable_gzip=enable_gzip, **kwargs)

@classmethod
def from_env_properties(cls, debug=None, enable_gzip=False, **kwargs):
Expand Down Expand Up @@ -208,7 +207,7 @@ def from_env_properties(cls, debug=None, enable_gzip=False, **kwargs):
- INFLUXDB_V2_PROFILERS
- INFLUXDB_V2_TAG
"""
return super(InfluxDBClient, cls)._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs)
return InfluxDBClient._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs)

def write_api(self, write_options=WriteOptions(), point_settings=PointSettings(), **kwargs) -> WriteApi:
"""
Expand Down
6 changes: 3 additions & 3 deletions influxdb_client/client/influxdb_client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def from_config_file(cls, config_file: str = "config.ini", debug=None, enable_gz
}

"""
return super(InfluxDBClientAsync, cls)._from_config_file(config_file=config_file, debug=debug,
enable_gzip=enable_gzip, **kwargs)
return InfluxDBClientAsync._from_config_file(config_file=config_file, debug=debug,
enable_gzip=enable_gzip, **kwargs)

@classmethod
def from_env_properties(cls, debug=None, enable_gzip=False, **kwargs):
Expand Down Expand Up @@ -225,7 +225,7 @@ def from_env_properties(cls, debug=None, enable_gzip=False, **kwargs):
- INFLUXDB_V2_PROFILERS
- INFLUXDB_V2_TAG
"""
return super(InfluxDBClientAsync, cls)._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs)
return InfluxDBClientAsync._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs)

async def ping(self) -> bool:
"""
Expand Down