LibvirtClient.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:katprep 作者: stdevel 项目源码 文件源码
def __connect(self):
        """This function establishes a connection to the hypervisor."""
        #create weirdo auth dict
        auth = [
            [libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE],
            self.retrieve_credentials, None
            ]
        #authenticate
        self.SESSION = libvirt.openAuth(self.URI, auth, 0)
        if self.SESSION == None:
            raise SessionException("Unable to establish connection to hypervisor!")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号