Skip to content

Commit 876f2d8

Browse files
committed
Deprecated USER_LIST diagnostics
1 parent bd4662f commit 876f2d8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎virl2_client/virl2_client.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,12 @@ def get_diagnostics(self, *categories: DiagnosticsCategory) -> dict:
917917
DeprecationWarning,
918918
)
919919
categories = [DiagnosticsCategory.ALL]
920+
if DiagnosticsCategory.USER_LIST in categories:
921+
warnings.warn(
922+
"'DiagnosticsCategory.USER_LIST' is deprecated. "
923+
"Use UserManagement.users() instead.",
924+
DeprecationWarning,
925+
)
920926
if DiagnosticsCategory.ALL in categories:
921927
categories = list(DiagnosticsCategory)[1:]
922928

0 commit comments

Comments
 (0)