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.
The session will be verified and if it is not valid anymore the normal username/password login will be initiated
If the session file cannot be written, the plugin returns an error state
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