def ConfigSync(shared=0):
  def wrap(fn):
    def sync_function(*args, **kwargs):
      with args[0].GetConfigManager(shared):
        return fn(*args, **kwargs)
    return sync_function
  return wrap
Configuration synchronization decorator.
dataset/ETHPy150Open ganeti/ganeti/lib/config/utils.py/ConfigSync