Skip to content

.Stdout in HTTP hook body template seems to always be empty #260

@guahki

Description

@guahki

First: thanks for this awesome tool helping to easily deploy restic!

I just tried to use .Stdout in the body-template of a send-* action as described in the docs (using resticprofile in version 0.23.0). But it seems to always be empty, regardless of error state and output of before running commands.

Am I doing something wrong? Do you need to set some undocumented setting for it to work?

Despite not being familiar with Go I tried to find the place where this variable is set, but could not find it. I found the definition of the struct at

but despite extensive search could not find any place populating this struct value. Is it possible that it was forgotten to populate it in #114? I find only two occurences of Stdout in the diff of this PR and one is the docs, the other the above mentioned definition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions