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
Merge requests
!65
Feature/small tweaks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/small tweaks
feature/small-tweaks
into
develop
Overview
0
Commits
2
Pipelines
1
Changes
3
Merged
Karel van Klink
requested to merge
feature/small-tweaks
into
develop
1 year ago
Overview
0
Commits
2
Pipelines
1
Changes
3
Expand
Add some small updates to LSO
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
4f0f0e30
2 commits,
1 year ago
3 files
+
23
−
43
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
lso/playbook.py
+
4
−
5
Options
"""
Module that gathers common API responses and data models.
"""
"""
Module that gathers common API responses and data models.
"""
import
enum
import
json
import
json
import
logging
import
logging
import
threading
import
threading
import
uuid
import
uuid
from
enum
import
StrEnum
,
auto
from
pathlib
import
Path
from
pathlib
import
Path
from
typing
import
Any
from
typing
import
Any
@@ -21,14 +21,13 @@ from lso.config import DEFAULT_REQUEST_TIMEOUT
@@ -21,14 +21,13 @@ from lso.config import DEFAULT_REQUEST_TIMEOUT
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
# enum.StrEnum is only available in python 3.11
class
PlaybookJobStatus
(
StrEnum
):
class
PlaybookJobStatus
(
str
,
enum
.
Enum
):
"""
Enumerator for status codes of a playbook job that
'
s running.
"""
"""
Enumerator for status codes of a playbook job that
'
s running.
"""
#: All is well.
#: All is well.
OK
=
"
ok
"
OK
=
auto
()
#: An error has occurred.
#: An error has occurred.
ERROR
=
"
error
"
ERROR
=
auto
()
class
PlaybookLaunchResponse
(
BaseModel
):
class
PlaybookLaunchResponse
(
BaseModel
):
Loading