Merge lp:~nobuto/charm-helpers/execd into lp:charm-helpers
Proposed by
Nobuto Murata
Status: | Merged |
---|---|
Merged at revision: | 636 |
Proposed branch: | lp:~nobuto/charm-helpers/execd |
Merge into: | lp:charm-helpers |
Diff against target: |
75 lines (+20/-17) 2 files modified
charmhelpers/payload/execd.py (+3/-2) tests/payload/test_execd.py (+17/-15) |
To merge this branch: | bzr merge lp:~nobuto/charm-helpers/execd |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+306700@code.launchpad.net |
Description of the change
Don't ignore errors in execd_run and record error messages by default
As execd_run is a part of hook execution, it should fail when it has errors so that users can clearly notice the error and re-run the hook.
To post a comment you must log in.
Yes, its unfortunate how much 'ignore errors by default' is used in charmhelpers when that is never the right thing to do for charms.
I've got one minor inline comment. We need at least one of the tests to call execd_run without the die_on_error argument so we can ensure the default is set correctly.
Note that reactive charms have this functionality built in (lib/charms/ layer/execd. py), and its behaviour matches what is proposed here.