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
15bb2bc2
authored
Feb 12, 2019
by
Turcsik Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Update node.py"
This reverts commit
22b41546
parent
22b41546
Pipeline
#693
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
circle/vm/models/node.py
+2
-3
No files found.
circle/vm/models/node.py
View file @
15bb2bc2
...
@@ -80,8 +80,7 @@ class MyLocalClient(LocalClient):
...
@@ -80,8 +80,7 @@ class MyLocalClient(LocalClient):
ret
[
raw
[
'id'
]]
=
raw
[
'return'
]
ret
[
raw
[
'id'
]]
=
raw
[
'return'
]
if
len
(
found
.
intersection
(
minions
))
>=
len
(
minions
):
if
len
(
found
.
intersection
(
minions
))
>=
len
(
minions
):
# All minions have returned, break out of the loop
# All minions have returned, break out of the loop
logge
except
(
KeyError
,
IndexError
,
ValueError
):
logger
.
debug
(
"jid
%
s found all minions"
,
jid
)
r
.
debug
(
"jid
%
s found all minions"
,
jid
)
break
break
continue
continue
# Then event system timeout was reached and nothing was returned
# Then event system timeout was reached and nothing was returned
...
@@ -350,7 +349,7 @@ class Node(OperatedMixin, TimeStampedModel):
...
@@ -350,7 +349,7 @@ class Node(OperatedMixin, TimeStampedModel):
continue
continue
value
=
target
[
'datapoints'
][
-
2
][
0
]
value
=
target
[
'datapoints'
][
-
2
][
0
]
retval
[
metric
]
=
float
(
value
)
retval
[
metric
]
=
float
(
value
)
except
(
KeyError
,
IndexError
,
ValueError
,
TypeError
):
except
(
KeyError
,
IndexError
,
ValueError
):
continue
continue
return
retval
return
retval
...
...
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