Merge lp://staging/~wesmason/charms/trusty/conn-check/add-config-path into lp://staging/~ubuntuone-hackers/charms/trusty/conn-check/trunk
Proposed by
Wes Mason
Status: | Merged |
---|---|
Approved by: | Wes Mason |
Approved revision: | no longer in the source branch. |
Merged at revision: | 31 |
Proposed branch: | lp://staging/~wesmason/charms/trusty/conn-check/add-config-path |
Merge into: | lp://staging/~ubuntuone-hackers/charms/trusty/conn-check/trunk |
Diff against target: |
128 lines (+20/-38) 2 files modified
README.md (+2/-2) playbook.yaml (+18/-36) |
To merge this branch: | bzr merge lp://staging/~wesmason/charms/trusty/conn-check/add-config-path |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Wes Mason (community) | Approve | ||
Review via email:
|
Commit message
Add ability to set config_path from relation, and don't write the config if set
Description of the change
This adds the ability to set config_path from the relation, and explicitly *doesn't* write the config file if the path is set.
I've also removed mention of config and just referenced config_path from the readme as this should be the preferred way (and we will eventually remove `config`).
Reference: https:/
To post a comment you must log in.
What about a using defaults in the vars?
So
config_path = "{{ relations[ 'conn-check' ][0]['config_ path']| default( '/srv/conn- check/config. yaml') }}" 'conn-check' ][0]|default( '') }}
path_provided = "{{ 'config_path' in relations[
that should simplify the currently complex when: logic?