Merge lp:~ev/charms/precise/postgresql/non-fatal-sysctl into lp:charms/postgresql
Proposed by
Evan
Status: | Merged |
---|---|
Merged at revision: | 103 |
Proposed branch: | lp:~ev/charms/precise/postgresql/non-fatal-sysctl |
Merge into: | lp:charms/postgresql |
Diff against target: |
13 lines (+2/-1) 1 file modified
hooks/hooks.py (+2/-1) |
To merge this branch: | bzr merge lp:~ev/charms/precise/postgresql/non-fatal-sysctl |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+236322@code.launchpad.net |
Description of the change
The postgresql charm fails to deploy under LXC when it tries to call sysctl. This branch makes the sysctl commands non-fatal on error.
To post a comment you must log in.
Thanks. This looks good.
My initial thought was that we should log a warning if sysctl failed, but I realized that it is unnecessary as we don't specify quiet=True in the call to run(), so errors are already being emitted to the logs.