Merge lp:~abentley/charms/precise/juju-reports/stop-on-ssh-source into lp:~juju-qa/charms/precise/juju-reports/trunk
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Approved by: | Martin Packman |
Approved revision: | 52 |
Merged at revision: | 51 |
Proposed branch: | lp:~abentley/charms/precise/juju-reports/stop-on-ssh-source |
Merge into: | lp:~juju-qa/charms/precise/juju-reports/trunk |
Diff against target: |
57 lines (+12/-5) 1 file modified
hooks/common.py (+12/-5) |
To merge this branch: | bzr merge lp:~abentley/charms/precise/juju-reports/stop-on-ssh-source |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Packman (community) | Approve | ||
Review via email: mp+248777@code.launchpad.net |
Commit message
Fix new deploy problems.
Description of the change
This fixes two issues that were discovered when spinning up the juju-ci4 env.
First, it attempts to use bzr+ssh urls when there's no lp ssh key, causing the unit to error.
Second, it assumes that the mongodb charm will always supply replset, when in fact, the trusty charm supplies replset only when there are more than one units.
This branch changes the charm so that it stops, instead of erroring, when it can't use a bzr+ssh url. It changes the mongodb handling so that uses replset only when supplied.
To post a comment you must log in.
Looks good. Wasn't sure about the stop vs error on bzr+ssh but it's clear from the code that's the right thing.