Comment 2 for bug 1494542

Revision history for this message
Tim Penhey (thumper) wrote :

The problem is that the 'juju run' command that is executed immediately after the hook goes into an error state bumps the unit out of the error state and it says it is now running commands.

However when it has finished, it never sets the unit status back to what it was.

The fix is to return it to the previous state when the juju run command has completed.