예제 #1
0
 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
예제 #2
0
 def connect(self):
     if self._conn is None:
         self._conn = packet_utils.connect(self.access_key_id)
예제 #3
0
 def connect(self):
     if self._conn: return
     self._conn = packet_utils.connect(self.access_key_id)