Merge lp:~hazmat/pyjuju/hooks-with-formula-dir into lp:pyjuju
Proposed by
Kapil Thangavelu
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Kapil Thangavelu | ||||
Approved revision: | 262 | ||||
Merged at revision: | 267 | ||||
Proposed branch: | lp:~hazmat/pyjuju/hooks-with-formula-dir | ||||
Merge into: | lp:pyjuju | ||||
Diff against target: |
271 lines (+82/-15) 6 files modified
docs/source/faq.rst (+7/-0) ensemble/hooks/invoker.py (+11/-2) ensemble/hooks/tests/test_executor.py (+9/-3) ensemble/hooks/tests/test_invoker.py (+46/-6) ensemble/unit/lifecycle.py (+5/-3) ensemble/unit/tests/test_lifecycle.py (+4/-1) |
||||
To merge this branch: | bzr merge lp:~hazmat/pyjuju/hooks-with-formula-dir | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Reade (community) | Approve | ||
Gustavo Niemeyer | Approve | ||
Jim Baker | Pending | ||
Review via email: mp+65557@code.launchpad.net |
Description of the change
Hooks are now executed in the unit root directory, and have a FORMULA_DIR environment variable pointing to the formula directory.
To post a comment you must log in.
[1]
We talked about having the formula path as the cwd, and I've seen at least one person mentioning the expectation that the cwd is actually formula/hooks. I'd probably be worth to do a quick individual questioning about what each formula author we have expects cwd to be, and use that instead of the unit dir.