from vc.src import conf
from pyVim.connect import SmartConnect, Disconnect
import ssl

class VMOmiConn(object):
    def __init__(self):
        self.ssl = ssl._create_default_https_context = ssl._create_unverified_context

    def startConn(self):
        try:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf.PASSWORD)
            return connObj
        except:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf.PASSWORD, sslContext=self.ssl)
            return connObj

3360cbec2610c13489504b758b3cec2e33729d9e
<mask token>

<mask token>


class VMOmiConn(object):
    <mask token>

    def startConn(self):
        try:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf
                .PASSWORD)
            return connObj
        except:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf
                .PASSWORD, sslContext=self.ssl)
            return connObj

<mask token>


class VMOmiConn(object):

    def __init__(self):
        self.ssl = ssl._create_default_https_context = (ssl.
            _create_unverified_context)

    def startConn(self):
        try:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf
                .PASSWORD)
            return connObj
        except:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf
                .PASSWORD, sslContext=self.ssl)
            return connObj

from vc.src import conf
from pyVim.connect import SmartConnect, Disconnect
import ssl


class VMOmiConn(object):

    def __init__(self):
        self.ssl = ssl._create_default_https_context = (ssl.
            _create_unverified_context)

    def startConn(self):
        try:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf
                .PASSWORD)
            return connObj
        except:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf
                .PASSWORD, sslContext=self.ssl)
            return connObj

from vc.src import conf
from pyVim.connect import SmartConnect, Disconnect
import ssl

class VMOmiConn(object):
    def __init__(self):
        self.ssl = ssl._create_default_https_context = ssl._create_unverified_context

    def startConn(self):
        try:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf.PASSWORD)
            return connObj
        except:
            connObj = SmartConnect(host=conf.HOST, user=conf.USER, pwd=conf.PASSWORD, sslContext=self.ssl)
            return connObj
