def __init__(self, context, ec_id, enable_locks=True):
    self._ec_id = ec_id
    self._cbs = None
    self.cfg = context.GetConfig(ec_id)
    self.rpc = context.GetRpc(self.cfg)
    self.hmclass = hooksmaster.HooksMaster
    self._hm = None
    self._enable_locks = enable_locks
    self.wconfd = wconfd # Indirection to allow testing
    self._wconfdcontext = context.GetWConfdContext(ec_id)
Constructor for Processor
dataset/ETHPy150Open ganeti/ganeti/lib/mcpu.py/Processor.__init__