def __init__(self, api_key, secret,
                 is_secure=True, server=HOST, port=None):

        if not port:
            port = PORTS_BY_SECURITY[is_secure]

        self.verbose = False
        self.api_key = api_key
        self.secret = secret
        conn_str = "%s:%d" % (server, port)
        if (is_secure):
            self.connection = httplib.HTTPSConnection(conn_str)
        else:
            self.connection = httplib.HTTPConnection(conn_str)
dataset/ETHPy150Open infincia/AEServmon/libcloud/drivers/gogrid.py/GoGridAuthConnection.__init__/original