Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mentat-test
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
mentat-test
Commits
2032b53d
Commit
2032b53d
authored
4 years ago
by
Rajmund Hruška
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Allow missing node names in IDEA. (Redmine issue:
#6497
)
parent
f7141de1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/mentat/idea/internal.py
+1
-1
1 addition, 1 deletion
lib/mentat/idea/internal.py
lib/mentat/idea/sqldb.py
+2
-0
2 additions, 0 deletions
lib/mentat/idea/sqldb.py
with
3 additions
and
1 deletion
lib/mentat/idea/internal.py
+
1
−
1
View file @
2032b53d
...
...
@@ -261,7 +261,7 @@ class Idea(idea.lite.Idea): # pylint: disable=locally-disabled,too-many-ancesto
:return: Value of message attribute ``idea[
'
Node
'
][
'
Name
'
]``.
:rtype: list of strings
"""
return
[
n
ode
[
'
Name
'
]
for
node
in
self
.
get
(
'
Node
'
,
[])]
return
[
n
ame
for
name
in
(
node
.
get
(
'
Name
'
,
None
)
for
node
in
self
.
get
(
'
Node
'
,
[])
)
if
name
]
def
get_addresses
(
self
,
node
,
get_v4
=
True
,
get_v6
=
True
):
"""
...
...
This diff is collapsed.
Click to expand it.
lib/mentat/idea/sqldb.py
+
2
−
0
View file @
2032b53d
...
...
@@ -176,6 +176,8 @@ class Idea: # pylint: disable=locally-disabled,too-many-instance-attributes,t
# Node (detector) name and types (tags).
self
.
node_name
=
idea_event
.
get_detectors
()
if
not
self
.
node_name
:
raise
KeyError
(
"
Missing Node name
"
)
self
.
node_type
=
idea_event
.
get_types
(
'
Node
'
)
# CESNET implementation specific metadata.
...
...
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