vmware/pyvmomi

Make login optional

开放

#158 创建于 2014年9月9日

 (8 条评论) (0 个反应) (1 位负责人)Python (807 个派生)batch import
enhancementhelp wantedsample request

仓库指标

星标
 (2,141 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

We're trying to develop an extension using pyvmomi, and extensions don't log in using username and password, but use the LoginExtensionByCertificate API. However, when we call Connect or SmartConnect, we must provide a username and password for log in... It would be great if the __Login function was called from Connect only if user and pwd were provided, so that it would be optional instead of mandatory. This way we can create a Connection class and then call the API on our own: service_instance.content.sessionManager.LoginExtensionByCertificate

贡献者指南