Skip to content

Commit 7e3da08

Browse files
committed
Deprecated USER_LIST diagnostics
1 parent bd4662f commit 7e3da08

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

virl2_client/virl2_client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,16 @@ def get_diagnostics(self, *categories: DiagnosticsCategory) -> dict:
916916
"DiagnosticsCategory.LABS, ...)' with specific categories instead.",
917917
DeprecationWarning,
918918
)
919+
<<<<<<< Updated upstream
919920
categories = [DiagnosticsCategory.ALL]
921+
=======
922+
if DiagnosticsCategory.USER_LIST in categories:
923+
warnings.warn(
924+
"'DiagnosticsCategory.USER_LIST' is deprecated. "
925+
"Use UserManagement.users() instead.",
926+
DeprecationWarning,
927+
)
928+
>>>>>>> Stashed changes
920929
if DiagnosticsCategory.ALL in categories:
921930
categories = list(DiagnosticsCategory)[1:]
922931

0 commit comments

Comments
 (0)