Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silent on defer #1877

Closed
danilobuerger opened this issue Oct 22, 2024 · 1 comment · Fixed by #1879
Closed

silent on defer #1877

danilobuerger opened this issue Oct 22, 2024 · 1 comment · Fixed by #1879

Comments

@danilobuerger
Copy link
Contributor

Currently it doesn't seem possible to set silent on defers:

      - defer: echo "hello world"
        silent: true
      - defer:
          cmd: echo "hello world"
          silent: true

both dont work.

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Oct 22, 2024
@trulede
Copy link

trulede commented Oct 23, 2024

For a cmd, it seems that is not parsed from the YAML.

c.Cmd = deferredCmd.Defer

compare with line 68.

If you add "Silent bool" to "deferredCmd" and the necessary assignment (as per line 68) ... it might work.

Same again if you would use a defer task. Currently not parsed, but if you add it, might work. See line 91, here it is probably already parsed (its in type Call) but just not assigned.

@task-bot task-bot removed the state: needs triage Waiting to be triaged by a maintainer. label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants