Unable to get recent tasks list against ESXi host
IonutDanNica opened this issue · comments
Ionut-Dan Nica commented
Describe the bug
When trying to get recent tasks against an ESXi host we get this error message:
Can't load class 'vslmCatalogChangeResult'
Reproduction steps
-
connect to ESXi, get recent tasks list
-
c = SmartConnect(host=ip, user=user, pwd=pwd, disableSslCertValidation=True) current_session_key = c.content.sessionManager.currentSession.key # Path for tasks tasks_list = c.content.taskManager.recentTask
-
Observe error message
Can't load class 'vslmCatalogChangeResult'
Expected behavior
I would expect to get the recent task list object.
Additional context
This error does not show if we run the same code against VCSA, only via ESXi, and with ESXi it is a bit intermittent, we can't seem to pinpoint a pattern to the intermittence
Running script in Windows with these versions installed
PyvMomi 8.0.1.0.2
Pyvim 3.0.3
Python version 3.10
DanielDraganov commented
Hi @IonutDanNica
This issue duplicates #1016
This is an internal issues that is yet to be fixed.