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
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
7b3e61ed
Verified
Commit
7b3e61ed
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
make it impossible to skip past a provisioning proxy step without run results
parent
0f7d2317
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!30
make it impossible to skip past a provisioning proxy step without run results
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/services/provisioning_proxy.py
+8
-0
8 additions, 0 deletions
gso/services/provisioning_proxy.py
with
8 additions
and
0 deletions
gso/services/provisioning_proxy.py
+
8
−
0
View file @
7b3e61ed
...
...
@@ -14,6 +14,7 @@ from orchestrator.forms import FormPage, ReadOnlyField
from
orchestrator.forms.validators
import
Accept
,
Label
,
LongText
from
orchestrator.types
import
UUIDstr
,
State
,
strEnum
from
orchestrator.utils.json
import
json_dumps
from
pydantic
import
validator
from
gso
import
settings
from
gso.products.product_types.device
import
DeviceProvisioning
...
...
@@ -179,6 +180,13 @@ def await_pp_results(subscription: SubscriptionModel,
pp_run_results
:
dict
=
None
confirm
:
Accept
=
Accept
(
'
INCOMPLETE
'
)
@validator
(
'
pp_run_results
'
,
allow_reuse
=
True
,
pre
=
True
,
always
=
True
)
def
run_results_must_be_given
(
cls
,
run_results
):
if
run_results
is
None
:
raise
ValueError
(
'
Run results may not be empty.
'
'
Wait for the provisioning proxy to finish.
'
)
return
run_results
result_page
=
yield
ProvisioningResultPage
return
result_page
.
dict
()
...
...
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