Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
ed1080d0
authored
Nov 25, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manager: change function's name to more appropriate
parent
fcb3d718
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
circle/manager/scheduler.py
+1
-1
circle/vm/models.py
+1
-1
No files found.
circle/manager/scheduler.py
View file @
ed1080d0
...
@@ -17,7 +17,7 @@ class TraitsUnsatisfiableException(Exception):
...
@@ -17,7 +17,7 @@ class TraitsUnsatisfiableException(Exception):
Exception
.
__init__
(
self
,
message
)
Exception
.
__init__
(
self
,
message
)
def
ge
t_node
(
instance
,
nodes
):
def
selec
t_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
...
...
circle/vm/models.py
View file @
ed1080d0
...
@@ -680,7 +680,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
...
@@ -680,7 +680,7 @@ class Instance(AclBase, VirtualMachineDescModel, TimeStampedModel):
# Schedule
# Schedule
if
self
.
node
is
None
:
if
self
.
node
is
None
:
self
.
node
=
scheduler
.
ge
t_node
(
self
,
Node
.
objects
.
all
())
self
.
node
=
scheduler
.
selec
t_node
(
self
,
Node
.
objects
.
all
())
self
.
save
()
self
.
save
()
...
...
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