def connect(self): if self._conn: return self._conn if not self.accessKeyId: raise Exception( "No API token is set, ensure packet.accessKeyId is set!") self._conn = packet_utils.connect(self.accessKeyId) return self._conn
def connect(self): if self._conn is None: self._conn = packet_utils.connect(self.access_key_id)
def connect(self): if self._conn: return self._conn = packet_utils.connect(self.access_key_id)