Revision b2acdbdc lib/rpc.py

b/lib/rpc.py
723 723
  """RPC wrappers for L{config}.
724 724

  
725 725
  """
726
  def __init__(self, address_list):
726
  def __init__(self, context, address_list):
727 727
    """Initializes this class.
728 728

  
729 729
    """
730
    if context:
731
      lock_monitor_cb = context.glm.AddToLockMonitor
732
    else:
733
      lock_monitor_cb = None
734

  
730 735
    if address_list is None:
731 736
      resolver = _SsconfResolver
732 737
    else:
733 738
      # Caller provided an address list
734 739
      resolver = _StaticResolver(address_list)
735 740

  
736
    _RpcClientBase.__init__(self, resolver, _ENCODERS.get)
741
    _RpcClientBase.__init__(self, resolver, _ENCODERS.get,
742
                            lock_monitor_cb=lock_monitor_cb)
737 743
    _generated_rpc.RpcClientConfig.__init__(self)

Also available in: Unified diff