genvid.toolbox.ConsulTemplateExecutionFailed

class genvid.toolbox.ConsulTemplateExecutionFailed

Bases: ConsulTemplateError

Raised when running consul-template yielded 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-template process.

  • logs – Iterable of the logs emitted to stderr.

log(logger)

Override of ConsulTemplateError.log().

This method also log the logs captured from consul-template directly.

Parameters:

logger – Logger to use to write the log.