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

Action: Task exit code #13132

Merged
merged 5 commits into from
Jul 5, 2021
Merged

Commits on Jul 2, 2021

  1. Action: Task exit code

    The following propagates the task result exit code up to the CLI so that
    a user calling `juju exec` will know that an error occurred in one or
    more tasks. Prior to this commit, users would have to inspect every
    result which is a bit disappointing for bash style scripting against the
    CLI. With this change it should be possible to do the following:
    
       $ juju exec --all 'exit 1'
       $ echo $? # should see 1
    
    This makes juju a lot more powerful to sys or ops users.
    
    The code is simple, inspect the result for an exit code. If it exists
    propagate it to the CLI and return an error stating the fact that a task
    failed.
    SimonRichardson committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    6383f00 View commit details
    Browse the repository at this point in the history
  2. Action: Remove wait-for type

    The wait-for type isn't used any more, so let's just remove it.
    SimonRichardson committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    af59c74 View commit details
    Browse the repository at this point in the history
  3. Actions: Fix error message

    The following updates the error message to identify the task failure and
    the return code of the failure.
    SimonRichardson committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    7566b52 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    06280e9 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2021

  1. Actions: Improve error message

    Give hints about where to go next if there was a failure. This just
    improves juju usability.
    SimonRichardson committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    8f960cc View commit details
    Browse the repository at this point in the history