Beispiel #1
0
def get_api_client():
    ci = ConnectionInfo.objects.get(name=API_CLIENT_CI)
    return CloudBoltAPIClient(ci.username,
                              ci.password,
                              ci.ip,
                              ci.port,
                              protocol=ci.protocol)
 def get_api_client(self):
     ci = self.connection_info
     return CloudBoltAPIClient(
     ci.username, ci.password, ci.ip, ci.port, protocol=ci.protocol)