def get_api_client(cluster): manager_ip = pu.get_manager(cluster).management_ip return api_client.ApiResource(manager_ip, username=CM_DEFAULT_USERNAME, password=CM_DEFAULT_PASSWD, version=CM_API_VERSION)
def get_cm_api(): return api_client.ApiResource(cm_address, server_port=cm_port, username=cm_username, password=cm_password)