Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fb783308
authored
Mar 13, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manager: do not deploy/schedule to disabled nodes
closes #103
parent
7fa48338
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
circle/manager/scheduler.py
+2
-1
No files found.
circle/manager/scheduler.py
View file @
fb783308
...
@@ -23,7 +23,8 @@ def select_node(instance, nodes):
...
@@ -23,7 +23,8 @@ def select_node(instance, nodes):
''' Select a node for hosting an instance based on its requirements.
''' Select a node for hosting an instance based on its requirements.
'''
'''
# check required traits
# check required traits
nodes
=
[
n
for
n
in
nodes
if
has_traits
(
instance
.
req_traits
.
all
(),
n
)]
nodes
=
[
n
for
n
in
nodes
if
n
.
enabled
and
has_traits
(
instance
.
req_traits
.
all
(),
n
)]
if
not
nodes
:
if
not
nodes
:
raise
TraitsUnsatisfiableException
()
raise
TraitsUnsatisfiableException
()
...
...
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