Skip to content
Snippets Groups Projects
Commit 82aa7957 authored by Neda Moeini's avatar Neda Moeini
Browse files

Make ruff happy

parent 24e7f20f
No related branches found
No related tags found
No related merge requests found
Pipeline #90596 failed
"""A workflow for terminating a VRF subscription."""
from typing import Any
from orchestrator.forms import FormPage
......@@ -30,8 +31,10 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
@model_validator(mode="before")
def vrf_must_have_empty_router_list(cls, data: Any) -> Any:
if vrf_subscription.vrf.vrf_router_list:
msg = ("VRF must not have any routers assigned to it before it can be deleted. Please remove all"
" routers from the VRF first.")
msg = (
"VRF must not have any routers assigned to it before it can be deleted. Please remove all"
" routers from the VRF first."
)
raise ValueError(msg)
return data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment