Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
f430f0a8
Commit
f430f0a8
authored
Jan 28, 2022
by
Andrey Vertiprahov
Browse files
Merge branch 'fix-avs-eltex-platform-type' into 'master'
Eltex.MES. Fix detect profile typo. See merge request
!6050
parents
a40a202d
a0ae0f60
Pipeline
#35125
passed with stages
in 36 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Eltex/MES/profile.py
View file @
f430f0a8
...
...
@@ -99,12 +99,13 @@ class Profile(BaseProfile):
"116"
:
"MES-3308F"
,
"120"
:
"MES-3348F"
,
"136"
:
"MES-5316A"
,
"190"
:
(
"MES-3324F"
,
"rev.B"
),
# rev.B
"190"
:
"MES-3324F"
,
# rev.B
}
REVISIONS
=
{
"190"
:
"rev.B"
}
def
get_platform
(
self
,
s
):
platform
,
*
revision
=
self
.
PLATFORMS
.
get
(
s
)
return
platform
,
revision
[
0
]
if
revision
else
None
return
self
.
PLATFORMS
.
get
(
s
),
self
.
REVISIONS
.
get
(
s
)
INTERFACE_TYPES
=
{
"as"
:
"physical"
,
# Async
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment