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
c5bb90cd
Commit
c5bb90cd
authored
11 months ago
by
Karel van Klink
Committed by
Neda Moeini
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Only run validation workflows on subscriptions that are both ACTIVE and in sync
parent
4e12f70a
No related branches found
No related tags found
1 merge request
!139
Feature/add validation workflows
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/utils/workflow_steps.py
+0
-13
0 additions, 13 deletions
gso/utils/workflow_steps.py
with
0 additions
and
13 deletions
gso/utils/workflow_steps.py
+
0
−
13
View file @
c5bb90cd
...
...
@@ -6,7 +6,6 @@ from typing import Any
from
orchestrator
import
inputstep
,
step
from
orchestrator.config.assignee
import
Assignee
from
orchestrator.types
import
State
,
UUIDstr
from
orchestrator.utils.errors
import
ProcessFailureError
from
orchestrator.utils.json
import
json_dumps
from
pydantic
import
ConfigDict
from
pydantic_forms.core
import
FormPage
...
...
@@ -122,15 +121,3 @@ def prompt_sharepoint_checklist_url(checklist_url: str) -> FormGenerator:
yield
SharepointPrompt
return
{}
@step
(
"
Detect configuration drift
"
)
def
detect_configuration_drift
(
callback_result
:
dict
)
->
None
:
"""
Inspect the diff for deploying configuration, to make sure there is no drift.
"""
if
callback_result
[
"
return_code
"
]
!=
0
:
# If deployment never was successful in the first place, raise an exception.
raise
ProcessFailureError
(
message
=
"
Provisioning proxy failure
"
,
details
=
callback_result
)
output_lines
=
callback_result
[
"
output
"
]
if
any
(
str
.
startswith
(
line
,
"
-
"
)
or
str
.
startswith
(
line
,
"
+
"
)
for
line
in
callback_result
[
"
output
"
]):
raise
ProcessFailureError
(
message
=
"
Configuration drift detected
"
,
details
=
output_lines
)
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