MCPcopy Index your code
hub / github.com/certbot/certbot / _run_eventually

Function _run_eventually

certbot/src/certbot/_internal/hooks.py:153–163  ·  view source on GitHub ↗

Registers a post-hook to be run eventually. All commands given to this function will be run exactly once in the order they were given when :func:`run_saved_post_hooks` is called. :param str command: post-hook to register to be run

(command: str)

Source from the content-addressed store, hash-verified

151
152
153def _run_eventually(command: str) -> None:
154 """Registers a post-hook to be run eventually.
155
156 All commands given to this function will be run exactly once in the
157 order they were given when :func:`run_saved_post_hooks` is called.
158
159 :param str command: post-hook to register to be run
160
161 """
162 if command not in post_hooks:
163 post_hooks.append(command)
164
165
166def run_saved_post_hooks(renewed_sans: list[san.SAN], failed_sans: list[san.SAN]) -> None:

Callers 1

post_hookFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected