Skip to content

Commit

Permalink
fixing version issue by not overwriting the version with the semantic…
Browse files Browse the repository at this point in the history
… version
  • Loading branch information
seankane-msft committed Aug 28, 2020
1 parent bf9d44f commit 6786a5f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ def __init__(
"""
super(TableClient, self).__init__(account_url, table_name, credential=credential, **kwargs)
self._client = AzureTable(self.url, pipeline=self._pipeline)
self._client._config.version = kwargs.get('api_version', VERSION) # pylint: disable=protected-access


@classmethod
def from_connection_string(
cls, conn_str, # type: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ def __init__(

super(TableServiceClient, self).__init__(account_url, service='table', credential=credential, **kwargs)
self._client = AzureTable(self.url, pipeline=self._pipeline)
self._client._config.version = kwargs.get('api_version', VERSION) # pylint: disable=protected-access


@classmethod
def from_connection_string(
cls, conn_str, # type: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def __init__(
account_url, table_name=table_name, credential=credential, loop=loop, **kwargs
)
self._client = AzureTable(self.url, pipeline=self._pipeline, loop=loop)
self._client._config.version = kwargs.get('api_version', VERSION) # pylint: disable = W0212
self._loop = loop

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def __init__(
loop=loop,
**kwargs)
self._client = AzureTable(url=self.url, pipeline=self._pipeline, loop=loop) # type: ignore
self._client._config.version = kwargs.get('api_version', VERSION) # pylint: disable=protected-access
self._loop = loop

@classmethod
Expand Down

0 comments on commit 6786a5f

Please sign in to comment.