Skip to content

Commit

Permalink
temporary fix surf backend to work with orchestrator-core 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hanstrompert committed Jun 26, 2024
1 parent 177012b commit 6fa0d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/supa/nrm/backends/surf.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _get_subscription_id(self, process_id: str) -> str:
def _get_nsi_stp_subscriptions(self) -> Any:
access_token = self._retrieve_access_token()
nsi_stp_subscriptions = get(
f"{self.backend_settings.base_url}/api/subscriptions/?filter=status,active,tag,NSISTP-NSISTPNL",
f"{self.backend_settings.base_url}/api/pythia_legacy/subscriptions/?filter=status,active,tag,NSISTP-NSISTPNL", # noqa: E501
headers={"Authorization": f"bearer {access_token}"},
)
if nsi_stp_subscriptions.status_code != 200:
Expand All @@ -221,7 +221,7 @@ def _get_topology(self) -> List[STP]:
ports: List[STP] = []
for nsi_stp_sub in self._get_nsi_stp_subscriptions():
nsi_stp_dm = get(
f"{self.backend_settings.base_url}/api/subscriptions/domain-model/{nsi_stp_sub['subscription_id']}",
f"{self.backend_settings.base_url}/api/pythia_legacy/subscriptions/domain-model/{nsi_stp_sub['subscription_id']}", # noqa: E501
headers={"Authorization": f"bearer {access_token}"},
)
if nsi_stp_dm.status_code != 200:
Expand Down

0 comments on commit 6fa0d60

Please sign in to comment.