Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fml40-reference-implementation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KWH40
fml40-reference-implementation
Merge requests
!24
Update role.py to fix json_out Role-bug
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update role.py to fix json_out Role-bug
AlexKrause-master-patch-23219
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Alexander Krause
requested to merge
AlexKrause-master-patch-23219
into
master
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
role couldn't be set correctly. out value wasn't used, so setting json_out value fixes problem
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
f6798f07
1 commit,
3 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ml/role.py
+
1
−
1
Options
@@ -79,7 +79,7 @@ def identifier(self, value):
def
to_json
(
self
):
"""
Returns a JSON representation of this role.
"""
out
=
{
"
class
"
:
self
.
__class_name
,
"
name
"
:
self
.
__name
}
self
.
__json_
out
=
{
"
class
"
:
self
.
__class_name
,
"
name
"
:
self
.
__name
}
if
self
.
identifier
:
self
.
__json_out
[
"
identifier
"
]
=
self
.
identifier
return
self
.
__json_out
Loading