Skip to content
Snippets Groups Projects
Commit 364746b6 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'f-deprecate-getusername' into 'dev'

F deprecate getusername

See merge request !145
parents 54ef02bf 1cddfe26
No related branches found
No related tags found
2 merge requests!149Release 0.15.1,!145F deprecate getusername
Pipeline #53873 passed with warnings
......@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ###
### Deprecated ###
- `connection.get_username`. Use `la.Info().user_info.name` instead.
### Removed ###
......
......@@ -757,6 +757,8 @@ class _Connection(object): # pylint: disable=useless-object-inheritance
Shortcut for: get_connection()._authenticator._credentials_provider.username
"""
warnings.warn("Deprecated. Please use ``la.Info().user_info.name`` instead.",
DeprecationWarning)
if self._authenticator is None:
raise ValueError(
"No authenticator set. Please call configure_connection() first.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment