genvid.toolbox.ConsulTemplateExecutionFailed
- class genvid.toolbox.ConsulTemplateExecutionFailed
Bases:
ConsulTemplateErrorRaised when running
consul-templateyielded a non-zero exit code.New in version 1.22.0.
- __init__(exit_code: int, logs: Iterable[str])
Initialize the exception.
- Parameters:
exit_code – Exit code of the failed
consul-templateprocess.logs – Iterable of the logs emitted to
stderr.
- log(logger)
Override of
ConsulTemplateError.log().This method also log the logs captured from
consul-templatedirectly.- Parameters:
logger – Logger to use to write the log.