Commit cb4d3314 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

masterd: Initialize job queue only after RPC client



Otherwise jobs started after an unclean master shutdown will fail as
they depend on the RPC client.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 5483fd73
......@@ -468,12 +468,12 @@ class GanetiContext(object):
self.cfg.SetContext(self)
# Job queue
self.jobqueue = jqueue.JobQueue(self)
# RPC runner
self.rpc = rpc.RpcRunner(self)
# Job queue
self.jobqueue = jqueue.JobQueue(self)
# setting this also locks the class against attribute modifications
self.__class__._instance = self
......
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