Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0646721b
authored
Sep 30, 2018
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linter warnings
parent
5b6f9cc1
Pipeline
#665
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
circle/dashboard/views/node.py
+1
-1
circle/vm/models/node.py
+1
-1
No files found.
circle/dashboard/views/node.py
View file @
0646721b
...
@@ -220,7 +220,7 @@ class NodeList(LoginRequiredMixin, GraphMixin, SingleTableView):
...
@@ -220,7 +220,7 @@ class NodeList(LoginRequiredMixin, GraphMixin, SingleTableView):
if
node
.
monitor_info
is
None
:
if
node
.
monitor_info
is
None
:
wrong_nodes
.
append
(
node
.
name
)
wrong_nodes
.
append
(
node
.
name
)
message
=
', '
.
join
(
wrong_nodes
)
message
=
', '
.
join
(
wrong_nodes
)
if
wrong_nodes
:
if
wrong_nodes
:
messages
.
error
(
self
.
request
,
messages
.
error
(
self
.
request
,
"Can't reach "
+
message
+
" monitor info"
)
"Can't reach "
+
message
+
" monitor info"
)
...
...
circle/vm/models/node.py
View file @
0646721b
...
@@ -370,7 +370,7 @@ class Node(OperatedMixin, TimeStampedModel):
...
@@ -370,7 +370,7 @@ class Node(OperatedMixin, TimeStampedModel):
logger
.
warning
(
'Monitor info is None'
)
logger
.
warning
(
'Monitor info is None'
)
return
0
return
0
elif
self
.
monitor_info
.
get
(
metric
)
is
None
:
elif
self
.
monitor_info
.
get
(
metric
)
is
None
:
logger
.
warning
(
'Unreachable monitor info of: '
+
metric
)
logger
.
warning
(
'Unreachable monitor info of: '
+
metric
)
return
0
return
0
else
:
else
:
return
self
.
monitor_info
.
get
(
metric
)
return
self
.
monitor_info
.
get
(
metric
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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