Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
0fd0ad04
Commit
0fd0ad04
authored
Jan 12, 2018
by
Gary Wong
Browse files
Don't count otherwise unavailable nodes against admission control.
parent
60ebe37e
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlrpc/emulabserver.py.in
View file @
0fd0ad04
...
...
@@ -3466,12 +3466,11 @@ class node:
result
=
{}
# gotta enumerate the list of nodes of this type that are avail
for
row
in
res
:
avail
=
freecounts
[
row
[
1
]
]
>
0
avail
=
row
[
2
]
==
1
and
row
[
3
]
==
1
and
row
[
8
]
==
1
and
freecounts
[
row
[
1
]
]
>
0
result
[
row
[
0
]]
=
{
"node_id"
:
row
[
0
],
"type"
:
row
[
1
],
"free"
:
(
avail
and
row
[
2
]
==
1
and
row
[
3
]
==
1
and
row
[
8
]
==
1
),
"free"
:
avail
,
}
if
row
[
4
]:
result
[
row
[
0
]][
"site"
]
=
row
[
4
]
...
...
Write
Preview
Supports
Markdown
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