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
Commits
8cd15903
Verified
Commit
8cd15903
authored
3 weeks ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
Move IAS logic into existing function
parent
a5924dbd
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!407
Add support for modifying the IAS flavour in creation and modification workflows
Pipeline
#93439
passed
3 weeks ago
Stage: tox
Stage: documentation
Stage: sonarqube
Stage: trigger_jenkins_build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/workflows/l3_core_service/ias/create_imported_ias.py
+4
-3
4 additions, 3 deletions
gso/workflows/l3_core_service/ias/create_imported_ias.py
with
4 additions
and
3 deletions
gso/workflows/l3_core_service/ias/create_imported_ias.py
+
4
−
3
View file @
8cd15903
...
...
@@ -19,7 +19,6 @@ from gso.workflows.l3_core_service.base_create_imported_l3_core_service import (
from
gso.workflows.l3_core_service.base_create_imported_l3_core_service
import
(
initialize_subscription
,
)
from
gso.workflows.l3_core_service.ias.shared
import
update_ias_subscription_model
def
initial_input_form_generator
()
->
FormGenerator
:
...
...
@@ -36,11 +35,14 @@ def initial_input_form_generator() -> FormGenerator:
@step
(
"
Create subscription
"
)
def
create_subscription
(
partner
:
str
)
->
dict
:
def
create_subscription
(
partner
:
str
,
ias_flavor
:
IASFlavor
)
->
dict
:
"""
Create a new subscription object in the database.
"""
partner_id
=
get_partner_by_name
(
partner
).
partner_id
product_id
=
get_product_id_by_name
(
ProductName
.
IMPORTED_IAS
)
subscription
=
ImportedIASInactive
.
from_product_id
(
product_id
,
partner_id
)
subscription
.
ias
.
ias_flavor
=
ias_flavor
return
{
"
subscription
"
:
subscription
,
"
subscription_id
"
:
subscription
.
subscription_id
}
...
...
@@ -54,7 +56,6 @@ def create_imported_ias() -> StepList:
return
(
begin
>>
create_subscription
>>
update_ias_subscription_model
>>
store_process_subscription
(
Target
.
CREATE
)
>>
initialize_subscription
>>
set_status
(
SubscriptionLifecycle
.
ACTIVE
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment