vm.py 文件源码

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

项目:vcdriver 作者: Lantero 项目源码 文件源码
def ip(self):
        """
        Poll vcenter to get the virtual machine IP

        :return: Return the ip
        """
        if self._vm_object:
            if not self._vm_object.summary.guest.ipAddress:
                timeout_loop(
                    self.timeout, 'Get IP', 1, False,
                    lambda: self._vm_object.summary.guest.ipAddress
                )
            ip = self._vm_object.summary.guest.ipAddress
            validate_ip(ip)
            return ip
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号