Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LSO
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
LSO
Commits
0fbc80df
Verified
Commit
0fbc80df
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
Adapt Vale config to be consistent with GSO
parent
f1ac14cd
No related branches found
No related tags found
1 merge request
!39
Feature/nat 231 improve performance
Pipeline
#83782
passed
1 year ago
Stage: tox
Stage: documentation
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/vale/.vale.ini
+10
-0
10 additions, 0 deletions
docs/vale/.vale.ini
lso/playbook.py
+3
-1
3 additions, 1 deletion
lso/playbook.py
with
13 additions
and
1 deletion
docs/vale/.vale.ini
+
10
−
0
View file @
0fbc80df
...
...
@@ -8,6 +8,16 @@ Packages = proselint, Microsoft
[*]
BasedOnStyles
=
Vale, proselint, Microsoft
; Found to be too intrusive
Microsoft.Passive
=
NO
; We are not a general audience
Microsoft.GeneralURL
=
NO
; It's okay to leave TODOs in the code, that's what they're for
proselint.Annotations
=
NO
; Replacing a ... with … shouldn't be holding back the entire CI pipeline
proselint.Typography
=
warning
; Same applies for not using contractions
Microsoft.Contractions
=
warning
[formats]
py
=
rst
This diff is collapsed.
Click to expand it.
lso/playbook.py
+
3
−
1
View file @
0fbc80df
...
...
@@ -122,7 +122,7 @@ def _run_playbook_proc(job_id: str, playbook_path: str, extra_vars: dict, invent
parsed_output
.
append
(
task_output
[
"
event_data
"
])
except
json
.
JSONDecodeError
:
# If the line can
no
t be decoded as JSON, include it in its entirety.
# If the line can
'
t be decoded as JSON, include it in its entirety.
parsed_output
.
append
({
"
invalid_json
"
:
line
})
payload
=
[
...
...
@@ -148,9 +148,11 @@ def run_playbook(playbook_path: str, extra_vars: dict, inventory: str, callback:
:param dict extra_vars: Any extra vars needed for the playbook to run.
:param [str] inventory: The inventory that the playbook is executed
against.
:param :class:`HttpUrl` callback: Callback URL where the playbook should send a status
update when execution is completed. This is used for
workflow-orchestrator to continue with the next step in a workflow.
:return: Result of playbook launch, this could either be successful or
unsuccessful.
:rtype: :class:`PlaybookLaunchResponse`
...
...
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