Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Merge requests
!128
Feature/use conditionals
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/use conditionals
feature/use-conditionals
into
develop
Overview
6
Commits
9
Pipelines
5
Changes
2
All threads resolved!
Hide all comments
Merged
Karel van Klink
requested to merge
feature/use-conditionals
into
develop
1 year ago
Overview
6
Commits
9
Pipelines
5
Changes
2
All threads resolved!
Hide all comments
Expand
Use conditionals to skip workflow steps, instead of using a big if-statement
0
0
Merge request reports
Viewing commit
51ffc223
Prev
Next
Show latest version
2 files
+
7
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
51ffc223
use a conditional to skip a step in terminate_router
· 51ffc223
Karel van Klink
authored
1 year ago
gso/workflows/router/create_router.py
+
1
−
2
Options
@@ -2,12 +2,11 @@
from
typing
import
Any
# noinspection PyProtectedMember
from
orchestrator.forms
import
FormPage
from
orchestrator.forms.validators
import
Choice
from
orchestrator.targets
import
Target
from
orchestrator.types
import
FormGenerator
,
State
,
SubscriptionLifecycle
,
UUIDstr
from
orchestrator.workflow
import
StepList
,
done
,
init
,
step
,
workflow
,
conditional
from
orchestrator.workflow
import
StepList
,
conditional
,
done
,
init
,
step
,
workflow
from
orchestrator.workflows.steps
import
resync
,
set_status
,
store_process_subscription
from
orchestrator.workflows.utils
import
wrap_create_initial_input_form
from
pydantic
import
validator
Loading