class FactsActionInvoker(object): """Used by CertActionClient to update a system's facts with the server, used primarily by the cron job but in a couple other places as well. Makes use of the facts module as well. """ def __init__(self): self.locker = Locker() def update(self): return self.locker.run(self._do_update) def _do_update(self): action = FactsActionCommand() return action.perform()
def __init__(self): self.locker = Locker()