Commit 75c7e9d3 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Fix eventd ad ganeti version compatibility

parent 1802ef75
......@@ -104,7 +104,11 @@ class JobFileHandler(pyinotify.ProcessEvent):
return
data = serializer.LoadJson(data)
job = jqueue._QueuedJob.Restore(None, data)
try: # Version compatibility issue with Ganeti
job = jqueue._QueuedJob.Restore(None, data, False)
except TypeError:
job = jqueue._QueuedJob.Restore(None, data)
for op in job.ops:
instances = ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment