genvid.toolbox.ConsulTemplateExecutionFailed

class genvid.toolbox.ConsulTemplateExecutionFailed(exit_code: int, logs: typing.Iterable[str])

Bases: genvid.toolbox.consul_template.ConsulTemplateError

Raised when running consul-template yielded a non-zero exit code.

New in version 1.22.0.

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.