From 7fc26555dc5218eef07c517fecef4c9f3dc5d2d8 Mon Sep 17 00:00:00 2001
From: Karel van Klink <karel.vanklink@geant.org>
Date: Mon, 28 Aug 2023 11:28:30 +0200
Subject: [PATCH] update router import to use a PortNumber
---
gso/workflows/tasks/import_router.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gso/workflows/tasks/import_router.py b/gso/workflows/tasks/import_router.py
index 30f56a53b..545d9c97a 100644
--- a/gso/workflows/tasks/import_router.py
+++ b/gso/workflows/tasks/import_router.py
@@ -11,7 +11,7 @@ from orchestrator.workflow import StepList, done, init, step
from orchestrator.workflows.steps import resync, set_status, store_process_subscription
from gso.products.product_blocks import router as router_pb
-from gso.products.product_blocks.router import RouterRole, RouterVendor
+from gso.products.product_blocks.router import RouterRole, RouterVendor, PortNumber
from gso.products.product_types import router
from gso.products.product_types.router import RouterInactive
from gso.services.crm import get_customer_by_name
@@ -58,7 +58,7 @@ def initial_input_form_generator() -> FormGenerator:
def initialize_subscription(
subscription: RouterInactive,
hostname: str,
- ts_port: int,
+ ts_port: PortNumber,
router_vendor: router_pb.RouterVendor,
router_site: str,
router_role: router_pb.RouterRole,
--
GitLab