Beispiel #1
0
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()
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()
Beispiel #3
0
 def __init__(self):
     self.locker = Locker()
 def __init__(self):
     self.locker = Locker()