Closed datamuc closed 5 months ago
In newer versions of pyVim one could use the normal SmartConnect method as it will introduce a "sessionId" parameter, but in the current version 8.0.2.0.1 it is not there yet. Here you can find the new sessionId parameter implementation: https://github.com/vmware/pyvmomi/blob/29104169c65d8ce455a7d384a8a741801ea0c458/pyVim/connect.py#L906
This is good news, thanks for the hint and the legacy implementation.
This will introduce a new --sessionfile argument where you can specify the path to a sessionfile where the authorization cookie will be stored for later reuse.
This change is based on the following discussion: https://github.com/vmware/pyvmomi/issues/537
In newer versions of pyVim one could use the normal SmartConnect method as it will introduce a "sessionId" parameter, but in the current version 8.0.2.0.1 it is not there yet. Here you can find the new sessionId parameter implementation: https://github.com/vmware/pyvmomi/blob/29104169c65d8ce455a7d384a8a741801ea0c458/pyVim/connect.py#L906