Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
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
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
293623a5
Commit
293623a5
authored
2 years ago
by
longllu
Browse files
Options
Downloads
Patches
Plain Diff
Common:
- solved issue parsing slice config rules
parent
9ddf1567
No related branches found
No related tags found
2 merge requests
!54
Release 2.0.0
,
!30
Fixed issue with descriptor parsing
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/tools/descriptor/Tools.py
+1
-1
1 addition, 1 deletion
src/common/tools/descriptor/Tools.py
with
1 addition
and
1 deletion
src/common/tools/descriptor/Tools.py
+
1
−
1
View file @
293623a5
...
@@ -74,7 +74,7 @@ def format_service_custom_config_rules(service : Dict) -> Dict:
...
@@ -74,7 +74,7 @@ def format_service_custom_config_rules(service : Dict) -> Dict:
def
format_slice_custom_config_rules
(
slice_
:
Dict
)
->
Dict
:
def
format_slice_custom_config_rules
(
slice_
:
Dict
)
->
Dict
:
config_rules
=
slice_
.
get
(
'
service_config
'
,
{}).
get
(
'
config_rules
'
,
[])
config_rules
=
slice_
.
get
(
'
service_config
'
,
{}).
get
(
'
config_rules
'
,
[])
config_rules
=
format_custom_config_rules
(
config_rules
)
config_rules
=
format_custom_config_rules
(
config_rules
)
slice_
[
'
s
erv
ice_config
'
][
'
config_rules
'
]
=
config_rules
slice_
[
'
s
l
ice_config
'
][
'
config_rules
'
]
=
config_rules
return
slice_
return
slice_
def
split_devices_by_rules
(
devices
:
List
[
Dict
])
->
Tuple
[
List
[
Dict
],
List
[
Dict
]]:
def
split_devices_by_rules
(
devices
:
List
[
Dict
])
->
Tuple
[
List
[
Dict
],
List
[
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