Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snseventd
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
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
OTDI Middleware
snseventd
Commits
7d8d32c2
Commit
7d8d32c2
authored
4 years ago
by
Edward Hicks
Browse files
Options
Downloads
Patches
Plain Diff
remove the try/except from around the node list check - we moved it to
the sanity check function
parent
5b957694
No related branches found
No related tags found
No related merge requests found
Pipeline
#92014
passed
4 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
snseventd.py
+3
-7
3 additions, 7 deletions
snseventd.py
with
3 additions
and
7 deletions
snseventd.py
+
3
−
7
View file @
7d8d32c2
...
...
@@ -431,13 +431,9 @@ while True:
# TODO: Add crypto signing support to ensure messages come from legit source
# Only proceed if the message is meant for either everyone or us explicitly
try
:
if
'
*
'
not
in
payload
[
'
nodes
'
]
and
Session
[
'
nodename
'
]
not
in
payload
[
'
nodes
'
]:
printlog
(
"
Message not meant for us - ignoring it
"
,
loglevels
.
DEBUG
)
continue
except
:
# 'nodes' isn't a list so ignore the command
raise
Exception
(
"
Invalid
'
nodes
'
section in message payload
"
)
if
'
*
'
not
in
payload
[
'
nodes
'
]
and
Session
[
'
nodename
'
]
not
in
payload
[
'
nodes
'
]:
printLog
(
"
Message not meant for us - ignoring it
"
,
loglevels
.
DEBUG
)
continue
# We're go. Get the actual command to execute
try
:
...
...
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