Skip to content

Commit

Permalink
fix: creating client instance from static configuration (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar authored Nov 1, 2022
1 parent 4311923 commit 0927944
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
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

### 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

0 comments on commit 0927944

Please sign in to comment.