Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0182954b
authored
Jun 06, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmcelery: added native_ovs configuration variable
parent
384d79c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
vmcelery.py
+8
-4
No files found.
vmcelery.py
View file @
0182954b
...
...
@@ -23,7 +23,15 @@ CACHE_URI = getenv('CACHE_URI')
def
to_bool
(
value
):
return
value
.
lower
()
in
(
"true"
,
"yes"
,
"y"
,
"t"
)
# Global configuration parameters declaration
lib_connection
=
None
native_ovs
=
False
if
to_bool
(
getenv
(
'LIBVIRT_KEEPALIVE'
,
"False"
)):
import
libvirt
lib_connection
=
libvirt
.
open
(
getenv
(
'LIBVIRT_URI'
))
if
to_bool
(
getenv
(
'NATIVE_OVS'
,
"False"
)):
native_ovs
=
True
celery
=
Celery
(
'vmcelery'
,
broker
=
AMQP_URI
,
...
...
@@ -38,7 +46,3 @@ celery.conf.update(
'vmdriver'
,
type
=
'direct'
),
routing_key
=
"vmdriver"
),
)
)
if
to_bool
(
getenv
(
'LIBVIRT_KEEPALIVE'
,
"False"
)):
import
libvirt
lib_connection
=
libvirt
.
open
(
getenv
(
'LIBVIRT_URI'
))
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