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
d256c0c3
authored
Sep 13, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime model import hack TODO fix it
parent
07258af8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
circle/manager/scheduler.py
+2
-2
No files found.
circle/manager/scheduler.py
View file @
d256c0c3
...
@@ -3,8 +3,8 @@ def get_node(instance):
...
@@ -3,8 +3,8 @@ def get_node(instance):
based on requirements.
based on requirements.
'''
'''
# Return first Node or None
# Return first Node or None
from
vm.models
import
Node
models
=
__import__
(
'vm.models'
)
try
:
try
:
return
Node
.
objects
.
all
()[
0
]
return
models
.
models
.
Node
.
objects
.
all
()[
0
]
except
:
except
:
return
None
return
None
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