Skip to content
Snippets Groups Projects
Verified Commit 9a5789af authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

pre-fill TT number in checklist when creating a new router

parent 137cf17e
No related branches found
No related tags found
Loading
......@@ -219,9 +219,11 @@ def prompt_insert_in_radius(subscription: RouterInactive) -> FormGenerator:
@step("Create a new SharePoint checklist")
def create_new_sharepoint_checklist(subscription: RouterProvisioning) -> State:
def create_new_sharepoint_checklist(subscription: RouterProvisioning, tt_number: str) -> State:
"""Create a new checklist in SharePoint for approving this router."""
new_list_item_url = SharePointClient().add_list_item("p_router", {"Title": subscription.router.router_fqdn})
new_list_item_url = SharePointClient().add_list_item(
"p_router", {"Title": subscription.router.router_fqdn, "TT_NUMBER": tt_number}
)
return {"checklist_url": new_list_item_url}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment