Skip to content

Commit 0ebe097

Browse files
committed
use-new-brancher-app-endpoint
1 parent 2b3a1a7 commit 0ebe097

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hypernode_api_python/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
HYPERNODE_API_APP_DETAIL_WITH_ADDONS_ENDPOINT = "/v2/app/{}/with_addons?destroyed=false"
1010
HYPERNODE_API_APP_EAV_DESCRIPTION_ENDPOINT = "/v2/app/eav_descriptions/"
1111
HYPERNODE_API_APP_FLAVOR_ENDPOINT = "/v2/app/{}/flavor/"
12-
HYPERNODE_API_APP_BRANCHER_ENDPOINT = "/v2/app/{}/brancher/"
12+
HYPERNODE_API_BRANCHER_APP_ENDPOINT = "/v2/brancher/app/{}/"
1313
HYPERNODE_API_BRANCHER_ENDPOINT = "/v2/brancher/{}/"
1414
HYPERNODE_API_APP_NEXT_BEST_PLAN_ENDPOINT = "/v2/app/{}/next_best_plan/"
1515
HYPERNODE_API_APP_PRODUCT_LIST_ENDPOINT = "/v2/product/app/{}/"
@@ -663,7 +663,7 @@ def get_active_branchers(self, app_name):
663663
:return obj response: The request response object
664664
"""
665665
return self.requests(
666-
"GET", HYPERNODE_API_APP_BRANCHER_ENDPOINT.format(app_name)
666+
"GET", HYPERNODE_API_BRANCHER_APP_ENDPOINT.format(app_name)
667667
)
668668

669669
def create_brancher(self, app_name, data):
@@ -676,7 +676,7 @@ def create_brancher(self, app_name, data):
676676
:return obj response: The request response object
677677
"""
678678
return self.requests(
679-
"POST", HYPERNODE_API_APP_BRANCHER_ENDPOINT.format(app_name), data=data
679+
"POST", HYPERNODE_API_BRANCHER_APP_ENDPOINT.format(app_name), data=data
680680
)
681681

682682
def destroy_brancher(self, brancher_name):

0 commit comments

Comments
 (0)