def SetWatcherPause(until, _filename=pathutils.WATCHER_PAUSEFILE):
  if until is None:
    logging.info("Received request to no longer pause watcher")
    utils.RemoveFile(_filename)
  else:
    logging.info("Received request to pause watcher until %s", until)

    if not ht.TNumber(until):
      _Fail("Duration must be numeric")

    utils.WriteFile(_filename, data="%d\n" % (until, ), mode=0644)
Returns the mapper.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/SetWatcherPause--crossover with--dataset/ETHPy150Open mik3y/django-db-multitenant/db_multitenant/utils.py/get_mapper