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
201f94f5
authored
Mar 19, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed vmcelery LIBVIRT_KEEPALIVE oprtion to accept False values
parent
3a8cc70a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
vmcelery.py
+4
-1
No files found.
vmcelery.py
View file @
201f94f5
...
...
@@ -9,6 +9,9 @@ HOSTNAME = gethostname()
AMQP_URI
=
getenv
(
'AMQP_URI'
)
def
to_bool
(
value
):
return
value
.
lower
()
in
(
"true"
,
"yes"
,
"y"
,
"t"
)
lib_connection
=
None
celery
=
Celery
(
'vmcelery'
,
backend
=
'amqp'
,
...
...
@@ -25,6 +28,6 @@ celery.conf.update(
)
)
if
getenv
(
'LIBVIRT_KEEPALIVE'
)
is
not
None
:
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